| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 static void SetDownloadManagerForTesting(BrowserContext* browser_context, | 144 static void SetDownloadManagerForTesting(BrowserContext* browser_context, |
| 145 DownloadManager* download_manager); | 145 DownloadManager* download_manager); |
| 146 | 146 |
| 147 // Makes mojo aware of this BrowserContext, and assigns a user ID number to | 147 // Makes mojo aware of this BrowserContext, and assigns a user ID number to |
| 148 // it. Should be called for each BrowserContext created. | 148 // it. Should be called for each BrowserContext created. |
| 149 static void Initialize(BrowserContext* browser_context, | 149 static void Initialize(BrowserContext* browser_context, |
| 150 const base::FilePath& path); | 150 const base::FilePath& path); |
| 151 | 151 |
| 152 // Returns a Mojo User ID associated with this BrowserContext. This ID is not | 152 // Returns a Mojo User ID associated with this BrowserContext. This ID is not |
| 153 // persistent across runs. See mojo/shell/public/interfaces/connector.mojom. | 153 // persistent across runs. See |
| 154 // services/shell/public/interfaces/connector.mojom. |
| 154 static const std::string& GetMojoUserIdFor(BrowserContext* browser_context); | 155 static const std::string& GetMojoUserIdFor(BrowserContext* browser_context); |
| 155 | 156 |
| 156 ~BrowserContext() override; | 157 ~BrowserContext() override; |
| 157 | 158 |
| 158 // Creates a delegate to initialize a HostZoomMap and persist its information. | 159 // Creates a delegate to initialize a HostZoomMap and persist its information. |
| 159 // This is called during creation of each StoragePartition. | 160 // This is called during creation of each StoragePartition. |
| 160 virtual std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( | 161 virtual std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( |
| 161 const base::FilePath& partition_path) = 0; | 162 const base::FilePath& partition_path) = 0; |
| 162 | 163 |
| 163 // Returns the path of the directory where this context's data is stored. | 164 // Returns the path of the directory where this context's data is stored. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 228 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
| 228 const base::FilePath& partition_path, | 229 const base::FilePath& partition_path, |
| 229 bool in_memory, | 230 bool in_memory, |
| 230 ProtocolHandlerMap* protocol_handlers, | 231 ProtocolHandlerMap* protocol_handlers, |
| 231 URLRequestInterceptorScopedVector request_interceptors) = 0; | 232 URLRequestInterceptorScopedVector request_interceptors) = 0; |
| 232 }; | 233 }; |
| 233 | 234 |
| 234 } // namespace content | 235 } // namespace content |
| 235 | 236 |
| 236 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 237 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
| OLD | NEW |