Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / extensions / browser / extensions_browser_client.h
index 137f58e..df17516 100644 (file)
@@ -25,6 +25,7 @@ class WebContents;
 }
 
 namespace net {
+class NetLog;
 class NetworkDelegate;
 class URLRequest;
 class URLRequestJob;
@@ -41,6 +42,7 @@ class ExtensionPrefsObserver;
 class ExtensionSystem;
 class ExtensionSystemProvider;
 class InfoMap;
+class ProcessManagerDelegate;
 class RuntimeAPIDelegate;
 
 // Interface to allow the extensions module to make browser-process-specific
@@ -133,12 +135,9 @@ class ExtensionsBrowserClient {
       content::BrowserContext* context,
       std::vector<ExtensionPrefsObserver*>* observers) const = 0;
 
-  // Returns true if loading background pages should be deferred.
-  virtual bool DeferLoadingBackgroundHosts(
-      content::BrowserContext* context) const = 0;
-
-  virtual bool IsBackgroundPageAllowed(
-      content::BrowserContext* context) const = 0;
+  // Returns the ProcessManagerDelegate shared across all BrowserContexts. May
+  // return NULL in tests or for simple embedders.
+  virtual ProcessManagerDelegate* GetProcessManagerDelegate() const = 0;
 
   // Creates a new ExtensionHostDelegate instance.
   virtual scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() = 0;
@@ -183,6 +182,9 @@ class ExtensionsBrowserClient {
   virtual ComponentExtensionResourceManager*
   GetComponentExtensionResourceManager() = 0;
 
+  // Returns the embedder's net::NetLog.
+  virtual net::NetLog* GetNetLog() = 0;
+
   // Returns the single instance of |this|.
   static ExtensionsBrowserClient* Get();