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. |