#define WRT_SRC_VIEW_WEBKIT_WRT_INJECTED_BUNDLE_H_
#include <map>
+#include <memory>
#include <set>
#include <list>
#include <string>
WK_EXPORT void WKBundleInitialize(WKBundleRef bundle, WKTypeRef);
}
+namespace InjectedBundle {
+class DecryptionSupport;
+}
+
class Bundle
{
public:
std::string m_theme;
std::set<JSGlobalContextRef> m_loadedContext;
JSGlobalContextRef m_willRemoveContext;
- bool m_encrypted;
- WrtDB::EncryptedFileList m_encryptedFiles;
WrtDB::WidgetType m_widgetType;
WrtDB::WidgetSecurityModelVersion m_securityModelVersion;
bool m_initialized;
+ std::unique_ptr<InjectedBundle::DecryptionSupport> m_decryptionSupport;
+
// WKBundlePageResourceLoadClient callback
static WKURLRequestRef willSendRequestForFrameCallback(
WKBundlePageRef,
WKTypeRef* userData);
// basic
- static std::string toString(WKStringRef str);
- static std::string toString(WKURLRef url);
- static std::string toString(WKURLRequestRef req);
- static std::string toString(WKErrorRef err);
+ inline static std::string toString(WKStringRef str);
+ inline static std::string toString(WKURLRef url);
+ inline static std::string toString(WKURLRequestRef req);
+ inline static std::string toString(WKErrorRef err);
static std::string getScheme(std::string uri);
bool isEncryptedResource(std::string Url, int &size);