[Release] wrt_0.8.213
[platform/framework/web/wrt.git] / src / view / webkit / injected-bundle / wrt-injected-bundle.h
index aedf3f1..223815c 100644 (file)
@@ -22,6 +22,7 @@
 #define WRT_SRC_VIEW_WEBKIT_WRT_INJECTED_BUNDLE_H_
 
 #include <map>
+#include <memory>
 #include <set>
 #include <list>
 #include <string>
@@ -37,6 +38,10 @@ extern "C" {
 WK_EXPORT void WKBundleInitialize(WKBundleRef bundle, WKTypeRef);
 }
 
+namespace InjectedBundle {
+class DecryptionSupport;
+}
+
 class Bundle
 {
   public:
@@ -76,12 +81,12 @@ class Bundle
     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,
@@ -163,10 +168,10 @@ class Bundle
         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);