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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
121 // that the ResourceContext is ready. | 121 // that the ResourceContext is ready. |
122 static void EnsureResourceContextInitialized(BrowserContext* browser_context); | 122 static void EnsureResourceContextInitialized(BrowserContext* browser_context); |
123 | 123 |
124 // Tells the HTML5 objects on this context to persist their session state | 124 // Tells the HTML5 objects on this context to persist their session state |
125 // across the next restart. | 125 // across the next restart. |
126 static void SaveSessionState(BrowserContext* browser_context); | 126 static void SaveSessionState(BrowserContext* browser_context); |
127 | 127 |
128 static void SetDownloadManagerForTesting(BrowserContext* browser_context, | 128 static void SetDownloadManagerForTesting(BrowserContext* browser_context, |
129 DownloadManager* download_manager); | 129 DownloadManager* download_manager); |
130 | 130 |
131 static void InitializeProfileApplication(BrowserContext* browser_context); | |
jam
2016/02/27 01:34:45
nit: add comments for both of these
| |
132 static uint32_t GetMojoUserIdFor(BrowserContext* browser_context); | |
133 | |
131 ~BrowserContext() override; | 134 ~BrowserContext() override; |
132 | 135 |
133 // Creates a delegate to initialize a HostZoomMap and persist its information. | 136 // Creates a delegate to initialize a HostZoomMap and persist its information. |
134 // This is called during creation of each StoragePartition. | 137 // This is called during creation of each StoragePartition. |
135 virtual scoped_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( | 138 virtual scoped_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( |
136 const base::FilePath& partition_path) = 0; | 139 const base::FilePath& partition_path) = 0; |
137 | 140 |
138 // Returns the path of the directory where this context's data is stored. | 141 // Returns the path of the directory where this context's data is stored. |
139 virtual base::FilePath GetPath() const = 0; | 142 virtual base::FilePath GetPath() const = 0; |
140 | 143 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
196 virtual PermissionManager* GetPermissionManager() = 0; | 199 virtual PermissionManager* GetPermissionManager() = 0; |
197 | 200 |
198 // Returns the BackgroundSyncController associated with that context if any, | 201 // Returns the BackgroundSyncController associated with that context if any, |
199 // nullptr otherwise. | 202 // nullptr otherwise. |
200 virtual BackgroundSyncController* GetBackgroundSyncController() = 0; | 203 virtual BackgroundSyncController* GetBackgroundSyncController() = 0; |
201 }; | 204 }; |
202 | 205 |
203 } // namespace content | 206 } // namespace content |
204 | 207 |
205 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 208 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
OLD | NEW |