1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "content/shell/browser/shell_browser_context.h"
11 #include "storage/browser/quota/special_storage_policy.h"
13 namespace extensions
{
16 class ShellSpecialStoragePolicy
;
18 // The BrowserContext used by the content, apps and extensions systems in
20 class ShellBrowserContext
: public content::ShellBrowserContext
{
22 ShellBrowserContext();
23 ~ShellBrowserContext() override
;
25 // content::BrowserContext implementation.
26 content::BrowserPluginGuestManager
* GetGuestManager() override
;
27 storage::SpecialStoragePolicy
* GetSpecialStoragePolicy() override
;
29 net::URLRequestContextGetter
* CreateRequestContext(
30 content::ProtocolHandlerMap
* protocol_handlers
,
31 content::URLRequestInterceptorScopedVector request_interceptors
,
32 InfoMap
* extension_info_map
);
35 void InitURLRequestContextOnIOThread();
37 scoped_refptr
<storage::SpecialStoragePolicy
> storage_policy_
;
39 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext
);
42 } // namespace extensions
44 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_