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