Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Side by Side Diff: extensions/shell/browser/shell_browser_context.h

Issue 1862203005: Remove ContentBrowserClient::CreateRequestContext & CreateRequestContextForStoragePartition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/shell/browser/shell_browser_context.h" 10 #include "content/shell/browser/shell_browser_context.h"
11 #include "storage/browser/quota/special_storage_policy.h" 11 #include "storage/browser/quota/special_storage_policy.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 class InfoMap; 15 class InfoMap;
16 class ShellBrowserMainParts;
16 class ShellSpecialStoragePolicy; 17 class ShellSpecialStoragePolicy;
17 18
18 // The BrowserContext used by the content, apps and extensions systems in 19 // The BrowserContext used by the content, apps and extensions systems in
19 // app_shell. 20 // app_shell.
20 class ShellBrowserContext : public content::ShellBrowserContext { 21 class ShellBrowserContext : public content::ShellBrowserContext {
21 public: 22 public:
22 ShellBrowserContext(); 23 explicit ShellBrowserContext(ShellBrowserMainParts* browser_main_parts);
23 ~ShellBrowserContext() override; 24 ~ShellBrowserContext() override;
24 25
25 // content::BrowserContext implementation. 26 // content::BrowserContext implementation.
26 content::BrowserPluginGuestManager* GetGuestManager() override; 27 content::BrowserPluginGuestManager* GetGuestManager() override;
27 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; 28 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
28
29 net::URLRequestContextGetter* CreateRequestContext( 29 net::URLRequestContextGetter* CreateRequestContext(
30 content::ProtocolHandlerMap* protocol_handlers, 30 content::ProtocolHandlerMap* protocol_handlers,
31 content::URLRequestInterceptorScopedVector request_interceptors, 31 content::URLRequestInterceptorScopedVector request_interceptors) override;
32 InfoMap* extension_info_map);
33 32
34 private: 33 private:
35 void InitURLRequestContextOnIOThread(); 34 void InitURLRequestContextOnIOThread();
36 35
37 scoped_refptr<storage::SpecialStoragePolicy> storage_policy_; 36 scoped_refptr<storage::SpecialStoragePolicy> storage_policy_;
37 ShellBrowserMainParts* browser_main_parts_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); 39 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext);
40 }; 40 };
41 41
42 } // namespace extensions 42 } // namespace extensions
43 43
44 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ 44 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698