OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ |
6 #define CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ | 6 #define CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( | 51 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( |
52 const base::FilePath& partition_path, | 52 const base::FilePath& partition_path, |
53 bool in_memory) override; | 53 bool in_memory) override; |
54 ResourceContext* GetResourceContext() override; | 54 ResourceContext* GetResourceContext() override; |
55 BrowserPluginGuestManager* GetGuestManager() override; | 55 BrowserPluginGuestManager* GetGuestManager() override; |
56 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; | 56 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; |
57 PushMessagingService* GetPushMessagingService() override; | 57 PushMessagingService* GetPushMessagingService() override; |
58 SSLHostStateDelegate* GetSSLHostStateDelegate() override; | 58 SSLHostStateDelegate* GetSSLHostStateDelegate() override; |
59 PermissionManager* GetPermissionManager() override; | 59 PermissionManager* GetPermissionManager() override; |
60 BackgroundSyncController* GetBackgroundSyncController() override; | 60 BackgroundSyncController* GetBackgroundSyncController() override; |
61 | |
62 net::URLRequestContextGetter* CreateRequestContext( | 61 net::URLRequestContextGetter* CreateRequestContext( |
63 ProtocolHandlerMap* protocol_handlers, | 62 ProtocolHandlerMap* protocol_handlers, |
64 URLRequestInterceptorScopedVector request_interceptors); | 63 URLRequestInterceptorScopedVector request_interceptors) override; |
65 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 64 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
66 const base::FilePath& partition_path, | 65 const base::FilePath& partition_path, |
67 bool in_memory, | 66 bool in_memory, |
68 ProtocolHandlerMap* protocol_handlers, | 67 ProtocolHandlerMap* protocol_handlers, |
69 URLRequestInterceptorScopedVector request_interceptors); | 68 URLRequestInterceptorScopedVector request_interceptors) override; |
70 | 69 |
71 protected: | 70 protected: |
72 // Contains URLRequestContextGetter required for resource loading. | 71 // Contains URLRequestContextGetter required for resource loading. |
73 class ShellResourceContext : public ResourceContext { | 72 class ShellResourceContext : public ResourceContext { |
74 public: | 73 public: |
75 ShellResourceContext(); | 74 ShellResourceContext(); |
76 ~ShellResourceContext() override; | 75 ~ShellResourceContext() override; |
77 | 76 |
78 // ResourceContext implementation: | 77 // ResourceContext implementation: |
79 net::HostResolver* GetHostResolver() override; | 78 net::HostResolver* GetHostResolver() override; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 base::FilePath path_; | 120 base::FilePath path_; |
122 BrowserPluginGuestManager* guest_manager_; | 121 BrowserPluginGuestManager* guest_manager_; |
123 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_; | 122 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_; |
124 | 123 |
125 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); | 124 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); |
126 }; | 125 }; |
127 | 126 |
128 } // namespace content | 127 } // namespace content |
129 | 128 |
130 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ | 129 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ |
OLD | NEW |