Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: content/public/browser/browser_context.h

Issue 1741953002: mojo: Sketch a profile application. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't add a boolean to BrowserContext; allocate an object instead. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/test/test_browser_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 // Makes mojo aware of this BrowserContext, and assigns a user ID number to
132 // it. Should be called for each BrowserContext created.
133 static void Initialize(BrowserContext* browser_context,
134 const base::FilePath& path);
135
136 // Returns a randomized user ID number associated with this
137 // BrowserContext. This ID is not persistent across runs.
138 static uint32_t GetMojoUserIdFor(BrowserContext* browser_context);
139
131 ~BrowserContext() override; 140 ~BrowserContext() override;
132 141
133 // Creates a delegate to initialize a HostZoomMap and persist its information. 142 // Creates a delegate to initialize a HostZoomMap and persist its information.
134 // This is called during creation of each StoragePartition. 143 // This is called during creation of each StoragePartition.
135 virtual scoped_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( 144 virtual scoped_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate(
136 const base::FilePath& partition_path) = 0; 145 const base::FilePath& partition_path) = 0;
137 146
138 // Returns the path of the directory where this context's data is stored. 147 // Returns the path of the directory where this context's data is stored.
139 virtual base::FilePath GetPath() const = 0; 148 virtual base::FilePath GetPath() const = 0;
140 149
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 virtual PermissionManager* GetPermissionManager() = 0; 205 virtual PermissionManager* GetPermissionManager() = 0;
197 206
198 // Returns the BackgroundSyncController associated with that context if any, 207 // Returns the BackgroundSyncController associated with that context if any,
199 // nullptr otherwise. 208 // nullptr otherwise.
200 virtual BackgroundSyncController* GetBackgroundSyncController() = 0; 209 virtual BackgroundSyncController* GetBackgroundSyncController() = 0;
201 }; 210 };
202 211
203 } // namespace content 212 } // namespace content
204 213
205 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 214 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/test/test_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698