Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / android_webview / browser / aw_browser_context.h
index d4d3734..2d8356f 100644 (file)
@@ -27,6 +27,10 @@ class ResourceContext;
 class WebContents;
 }
 
+namespace data_reduction_proxy {
+class DataReductionProxySettings;
+}
+
 namespace net {
 class CookieStore;
 }
@@ -35,6 +39,8 @@ namespace visitedlink {
 class VisitedLinkMaster;
 }
 
+using data_reduction_proxy::DataReductionProxySettings;
+
 namespace android_webview {
 
 class AwFormDatabaseService;
@@ -58,6 +64,8 @@ class AwBrowserContext : public content::BrowserContext,
   static AwBrowserContext* FromWebContents(
       content::WebContents* web_contents);
 
+  static void SetDataReductionProxyEnabled(bool enabled);
+
   // Maps to BrowserMainParts::PreMainMessageLoopRun.
   void PreMainMessageLoopRun();
 
@@ -74,6 +82,9 @@ class AwBrowserContext : public content::BrowserContext,
   AwQuotaManagerBridge* GetQuotaManagerBridge();
 
   AwFormDatabaseService* GetFormDatabaseService();
+
+  DataReductionProxySettings* GetDataReductionProxySettings();
+
   void CreateUserPrefServiceIfNecessary();
 
   // content::BrowserContext implementation.
@@ -114,6 +125,8 @@ class AwBrowserContext : public content::BrowserContext,
       GetDownloadManagerDelegate() OVERRIDE;
   virtual content::GeolocationPermissionContext*
       GetGeolocationPermissionContext() OVERRIDE;
+  virtual content::BrowserPluginGuestManagerDelegate*
+      GetGuestManagerDelegate() OVERRIDE;
   virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE;
 
   // visitedlink::VisitedLinkDelegate implementation.
@@ -121,6 +134,8 @@ class AwBrowserContext : public content::BrowserContext,
       const scoped_refptr<URLEnumerator>& enumerator) OVERRIDE;
 
  private:
+  static bool data_reduction_proxy_enabled_;
+
   // The file path where data for this context is persisted.
   base::FilePath context_storage_path_;
 
@@ -139,6 +154,8 @@ class AwBrowserContext : public content::BrowserContext,
 
   scoped_ptr<PrefService> user_pref_service_;
 
+  scoped_ptr<DataReductionProxySettings> data_reduction_proxy_settings_;
+
   DISALLOW_COPY_AND_ASSIGN(AwBrowserContext);
 };