OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "net/url_request/url_request_interceptor.h" | 23 #include "net/url_request/url_request_interceptor.h" |
24 #include "net/url_request/url_request_job_factory.h" | 24 #include "net/url_request/url_request_job_factory.h" |
25 | 25 |
26 class GURL; | 26 class GURL; |
27 | 27 |
28 namespace base { | 28 namespace base { |
29 class FilePath; | 29 class FilePath; |
30 class Time; | 30 class Time; |
31 } | 31 } |
32 | 32 |
33 namespace mojo { | 33 namespace shell { |
34 class Connector; | 34 class Connector; |
35 } | 35 } |
36 | 36 |
37 namespace storage { | 37 namespace storage { |
38 class ExternalMountPoints; | 38 class ExternalMountPoints; |
39 } | 39 } |
40 | 40 |
41 namespace net { | 41 namespace net { |
42 class URLRequestContextGetter; | 42 class URLRequestContextGetter; |
43 } | 43 } |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 static void Initialize(BrowserContext* browser_context, | 151 static void Initialize(BrowserContext* browser_context, |
152 const base::FilePath& path); | 152 const base::FilePath& path); |
153 | 153 |
154 // Returns a Mojo User ID associated with this BrowserContext. This ID is not | 154 // Returns a Mojo User ID associated with this BrowserContext. This ID is not |
155 // persistent across runs. See | 155 // persistent across runs. See |
156 // services/shell/public/interfaces/connector.mojom. | 156 // services/shell/public/interfaces/connector.mojom. |
157 static const std::string& GetMojoUserIdFor(BrowserContext* browser_context); | 157 static const std::string& GetMojoUserIdFor(BrowserContext* browser_context); |
158 | 158 |
159 // Returns a Connector associated with this BrowserContext, which can be used | 159 // Returns a Connector associated with this BrowserContext, which can be used |
160 // to connect to Mojo application instances bound to a specific user. | 160 // to connect to Mojo application instances bound to a specific user. |
161 static mojo::Connector* GetMojoConnectorFor(BrowserContext* browser_context); | 161 static shell::Connector* GetMojoConnectorFor(BrowserContext* browser_context); |
162 | 162 |
163 ~BrowserContext() override; | 163 ~BrowserContext() override; |
164 | 164 |
165 // Creates a delegate to initialize a HostZoomMap and persist its information. | 165 // Creates a delegate to initialize a HostZoomMap and persist its information. |
166 // This is called during creation of each StoragePartition. | 166 // This is called during creation of each StoragePartition. |
167 virtual std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( | 167 virtual std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( |
168 const base::FilePath& partition_path) = 0; | 168 const base::FilePath& partition_path) = 0; |
169 | 169 |
170 // Returns the path of the directory where this context's data is stored. | 170 // Returns the path of the directory where this context's data is stored. |
171 virtual base::FilePath GetPath() const = 0; | 171 virtual base::FilePath GetPath() const = 0; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 228 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
229 const base::FilePath& partition_path, | 229 const base::FilePath& partition_path, |
230 bool in_memory, | 230 bool in_memory, |
231 ProtocolHandlerMap* protocol_handlers, | 231 ProtocolHandlerMap* protocol_handlers, |
232 URLRequestInterceptorScopedVector request_interceptors) = 0; | 232 URLRequestInterceptorScopedVector request_interceptors) = 0; |
233 }; | 233 }; |
234 | 234 |
235 } // namespace content | 235 } // namespace content |
236 | 236 |
237 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 237 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
OLD | NEW |