mirror of
https://github.com/Adamcake/Bolt.git
synced 2026-04-20 08:56:52 -04:00
browser/client: more resource handling methods
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -6,8 +6,16 @@
|
||||
#include "../browser.hxx"
|
||||
#include "../native/native.hxx"
|
||||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
struct _InternalFile {
|
||||
bool success;
|
||||
std::vector<unsigned char> data;
|
||||
CefString mime_type;
|
||||
};
|
||||
|
||||
namespace Browser {
|
||||
/// Implementation of CefClient, CefBrowserProcessHandler, CefLifeSpanHandler, CefRequestHandler.
|
||||
@@ -66,6 +74,9 @@ namespace Browser {
|
||||
|
||||
Native::Native native;
|
||||
|
||||
std::string internal_url = "https://jaslaunch-internal/";
|
||||
std::map<std::string, _InternalFile> internal_pages;
|
||||
|
||||
// Mutex-locked vector - may be accessed from either UI thread (most of the time) or IO thread (GetResourceRequestHandler)
|
||||
std::vector<CefRefPtr<Browser::Window>> apps;
|
||||
std::mutex apps_lock;
|
||||
|
||||
Reference in New Issue
Block a user