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

Unified 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, 10 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/browser_context.h
diff --git a/content/public/browser/browser_context.h b/content/public/browser/browser_context.h
index b524b176daf208f32a3fe169c05d18ba38258552..26a208ca8d8e85937aba356a0440ee3797e048dd 100644
--- a/content/public/browser/browser_context.h
+++ b/content/public/browser/browser_context.h
@@ -128,6 +128,15 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
static void SetDownloadManagerForTesting(BrowserContext* browser_context,
DownloadManager* download_manager);
+ // Makes mojo aware of this BrowserContext, and assigns a user ID number to
+ // it. Should be called for each BrowserContext created.
+ static void Initialize(BrowserContext* browser_context,
+ const base::FilePath& path);
+
+ // Returns a randomized user ID number associated with this
+ // BrowserContext. This ID is not persistent across runs.
+ static uint32_t GetMojoUserIdFor(BrowserContext* browser_context);
+
~BrowserContext() override;
// Creates a delegate to initialize a HostZoomMap and persist its information.
« 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