Index: extensions/shell/browser/shell_browser_context.h |
diff --git a/extensions/shell/browser/shell_browser_context.h b/extensions/shell/browser/shell_browser_context.h |
index 305ab2b763b70b0a991ce73de894be6715c3612e..4ec90783910159b6fc08a7e8e3ac863e6093f653 100644 |
--- a/extensions/shell/browser/shell_browser_context.h |
+++ b/extensions/shell/browser/shell_browser_context.h |
@@ -10,21 +10,31 @@ |
#include "content/shell/browser/shell_browser_context.h" |
#include "storage/browser/quota/special_storage_policy.h" |
+namespace net { |
+class NetLog; |
+} |
+ |
namespace extensions { |
+class InfoMap; |
class ShellSpecialStoragePolicy; |
// The BrowserContext used by the content, apps and extensions systems in |
// app_shell. |
class ShellBrowserContext : public content::ShellBrowserContext { |
public: |
- ShellBrowserContext(); |
+ explicit ShellBrowserContext(net::NetLog* net_log); |
virtual ~ShellBrowserContext(); |
// content::BrowserContext implementation. |
virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; |
virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
+ net::URLRequestContextGetter* CreateRequestContext( |
+ content::ProtocolHandlerMap* protocol_handlers, |
+ content::URLRequestInterceptorScopedVector request_interceptors, |
+ InfoMap* extension_info_map); |
+ |
// HACK: Pad the virtual function table so we trip an assertion if someone |
// tries to use |this| as a Profile. |
virtual void ProfileFunctionCallOnNonProfileBrowserContext1(); |
@@ -44,7 +54,12 @@ class ShellBrowserContext : public content::ShellBrowserContext { |
virtual void ProfileFunctionCallOnNonProfileBrowserContext15(); |
private: |
+ void Init(); |
+ void InitializationOnIOThread(); |
+ net::NetLog* net_log_; |
+ bool ignore_certificate_errors_; |
scoped_refptr<storage::SpecialStoragePolicy> storage_policy_; |
+ scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; |
DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); |
}; |