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

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

Issue 1871223003: Use ShellClientFactory interface to load mojo:profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
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 12 matching lines...) Expand all
23 #include "net/url_request/url_request_interceptor.h" 23 #include "net/url_request/url_request_interceptor.h"
24 #include "net/url_request/url_request_job_factory.h" 24 #include "net/url_request/url_request_job_factory.h"
25 25
26 class GURL; 26 class GURL;
27 27
28 namespace base { 28 namespace base {
29 class FilePath; 29 class FilePath;
30 class Time; 30 class Time;
31 } 31 }
32 32
33 namespace mojo {
34 class Connector;
35 }
36
33 namespace storage { 37 namespace storage {
34 class ExternalMountPoints; 38 class ExternalMountPoints;
35 } 39 }
36 40
37 namespace net { 41 namespace net {
38 class URLRequestContextGetter; 42 class URLRequestContextGetter;
39 } 43 }
40 44
41 namespace storage { 45 namespace storage {
42 class SpecialStoragePolicy; 46 class SpecialStoragePolicy;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Makes mojo aware of this BrowserContext, and assigns a user ID number to 149 // Makes mojo aware of this BrowserContext, and assigns a user ID number to
146 // it. Should be called for each BrowserContext created. 150 // it. Should be called for each BrowserContext created.
147 static void Initialize(BrowserContext* browser_context, 151 static void Initialize(BrowserContext* browser_context,
148 const base::FilePath& path); 152 const base::FilePath& path);
149 153
150 // Returns a Mojo User ID associated with this BrowserContext. This ID is not 154 // Returns a Mojo User ID associated with this BrowserContext. This ID is not
151 // persistent across runs. See 155 // persistent across runs. See
152 // services/shell/public/interfaces/connector.mojom. 156 // services/shell/public/interfaces/connector.mojom.
153 static const std::string& GetMojoUserIdFor(BrowserContext* browser_context); 157 static const std::string& GetMojoUserIdFor(BrowserContext* browser_context);
154 158
159 // Returns a Connector associated with this BrowserContext, which can be used
160 // to connect to Mojo application instances bound to a specific user.
161 static mojo::Connector* GetMojoConnectorFor(BrowserContext* browser_context);
162
155 ~BrowserContext() override; 163 ~BrowserContext() override;
156 164
157 // Creates a delegate to initialize a HostZoomMap and persist its information. 165 // Creates a delegate to initialize a HostZoomMap and persist its information.
158 // This is called during creation of each StoragePartition. 166 // This is called during creation of each StoragePartition.
159 virtual std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( 167 virtual std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate(
160 const base::FilePath& partition_path) = 0; 168 const base::FilePath& partition_path) = 0;
161 169
162 // Returns the path of the directory where this context's data is stored. 170 // Returns the path of the directory where this context's data is stored.
163 virtual base::FilePath GetPath() const = 0; 171 virtual base::FilePath GetPath() const = 0;
164 172
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 228 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
221 const base::FilePath& partition_path, 229 const base::FilePath& partition_path,
222 bool in_memory, 230 bool in_memory,
223 ProtocolHandlerMap* protocol_handlers, 231 ProtocolHandlerMap* protocol_handlers,
224 URLRequestInterceptorScopedVector request_interceptors) = 0; 232 URLRequestInterceptorScopedVector request_interceptors) = 0;
225 }; 233 };
226 234
227 } // namespace content 235 } // namespace content
228 236
229 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 237 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/public/app/mojo/content_browser_manifest.json ('k') | mojo/public/tools/manifest/manifest_collator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698