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

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

Issue 2157143002: Move interface registration to OnConnect in RPH (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 namespace content { 49 namespace content {
50 50
51 class BackgroundSyncController; 51 class BackgroundSyncController;
52 class BlobHandle; 52 class BlobHandle;
53 class BrowserPluginGuestManager; 53 class BrowserPluginGuestManager;
54 class DownloadManager; 54 class DownloadManager;
55 class DownloadManagerDelegate; 55 class DownloadManagerDelegate;
56 class IndexedDBContext; 56 class IndexedDBContext;
57 class MojoShellConnection;
57 class PermissionManager; 58 class PermissionManager;
58 class PushMessagingService; 59 class PushMessagingService;
59 class ResourceContext; 60 class ResourceContext;
60 class SiteInstance; 61 class SiteInstance;
61 class StoragePartition; 62 class StoragePartition;
62 class SSLHostStateDelegate; 63 class SSLHostStateDelegate;
63 64
64 // A mapping from the scheme name to the protocol handler that services its 65 // A mapping from the scheme name to the protocol handler that services its
65 // content. 66 // content.
66 typedef std::map< 67 typedef std::map<
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Returns the BrowserContext associated with |user_id|, or nullptr if no 161 // Returns the BrowserContext associated with |user_id|, or nullptr if no
161 // BrowserContext exists for that |user_id|. 162 // BrowserContext exists for that |user_id|.
162 static BrowserContext* GetBrowserContextForShellUserId( 163 static BrowserContext* GetBrowserContextForShellUserId(
163 const std::string& user_id); 164 const std::string& user_id);
164 165
165 // Returns a Connector associated with this BrowserContext, which can be used 166 // Returns a Connector associated with this BrowserContext, which can be used
166 // to connect to service instances bound as this user. 167 // to connect to service instances bound as this user.
167 static shell::Connector* GetShellConnectorFor( 168 static shell::Connector* GetShellConnectorFor(
168 BrowserContext* browser_context); 169 BrowserContext* browser_context);
169 170
171 static MojoShellConnection* GetMojoShellConnectionFor(
172 BrowserContext* browser_context);
173
170 ~BrowserContext() override; 174 ~BrowserContext() override;
171 175
172 // Creates a delegate to initialize a HostZoomMap and persist its information. 176 // Creates a delegate to initialize a HostZoomMap and persist its information.
173 // This is called during creation of each StoragePartition. 177 // This is called during creation of each StoragePartition.
174 virtual std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( 178 virtual std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate(
175 const base::FilePath& partition_path) = 0; 179 const base::FilePath& partition_path) = 0;
176 180
177 // Returns the path of the directory where this context's data is stored. 181 // Returns the path of the directory where this context's data is stored.
178 virtual base::FilePath GetPath() const = 0; 182 virtual base::FilePath GetPath() const = 0;
179 183
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // called only once per partition_path. 236 // called only once per partition_path.
233 virtual net::URLRequestContextGetter* 237 virtual net::URLRequestContextGetter*
234 CreateMediaRequestContextForStoragePartition( 238 CreateMediaRequestContextForStoragePartition(
235 const base::FilePath& partition_path, 239 const base::FilePath& partition_path,
236 bool in_memory) = 0; 240 bool in_memory) = 0;
237 }; 241 };
238 242
239 } // namespace content 243 } // namespace content
240 244
241 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 245 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/public/app/mojo/content_utility_manifest.json ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698