Convert env to a defaultdict in run_executable() to fix other callers of that function.
[chromium-blink-merge.git] / extensions / shell / browser / shell_browser_context.h
blobb763777099d6280e5748d16e79fa04ca7cb0ea42
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/compiler_specific.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 net {
14 class NetLog;
17 namespace extensions {
19 class InfoMap;
20 class ShellSpecialStoragePolicy;
22 // The BrowserContext used by the content, apps and extensions systems in
23 // app_shell.
24 class ShellBrowserContext : public content::ShellBrowserContext {
25 public:
26 explicit ShellBrowserContext(net::NetLog* net_log);
27 virtual ~ShellBrowserContext();
29 // content::BrowserContext implementation.
30 virtual content::BrowserPluginGuestManager* GetGuestManager() override;
31 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
33 net::URLRequestContextGetter* CreateRequestContext(
34 content::ProtocolHandlerMap* protocol_handlers,
35 content::URLRequestInterceptorScopedVector request_interceptors,
36 InfoMap* extension_info_map);
38 // HACK: Pad the virtual function table so we trip an assertion if someone
39 // tries to use |this| as a Profile.
40 virtual void ProfileFunctionCallOnNonProfileBrowserContext1();
41 virtual void ProfileFunctionCallOnNonProfileBrowserContext2();
42 virtual void ProfileFunctionCallOnNonProfileBrowserContext3();
43 virtual void ProfileFunctionCallOnNonProfileBrowserContext4();
44 virtual void ProfileFunctionCallOnNonProfileBrowserContext5();
45 virtual void ProfileFunctionCallOnNonProfileBrowserContext6();
46 virtual void ProfileFunctionCallOnNonProfileBrowserContext7();
47 virtual void ProfileFunctionCallOnNonProfileBrowserContext8();
48 virtual void ProfileFunctionCallOnNonProfileBrowserContext9();
49 virtual void ProfileFunctionCallOnNonProfileBrowserContext10();
50 virtual void ProfileFunctionCallOnNonProfileBrowserContext11();
51 virtual void ProfileFunctionCallOnNonProfileBrowserContext12();
52 virtual void ProfileFunctionCallOnNonProfileBrowserContext13();
53 virtual void ProfileFunctionCallOnNonProfileBrowserContext14();
54 virtual void ProfileFunctionCallOnNonProfileBrowserContext15();
56 private:
57 void InitURLRequestContextOnIOThread();
58 net::NetLog* net_log_;
59 scoped_refptr<storage::SpecialStoragePolicy> storage_policy_;
61 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext);
64 } // namespace extensions
66 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_