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

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

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
Patch Set: . 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
« no previous file with comments | « content/public/DEPS ('k') | content/public/common/mojo_shell_connection.h » ('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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 static void SetDownloadManagerForTesting(BrowserContext* browser_context, 142 static void SetDownloadManagerForTesting(BrowserContext* browser_context,
143 DownloadManager* download_manager); 143 DownloadManager* download_manager);
144 144
145 // Makes mojo aware of this BrowserContext, and assigns a user ID number to 145 // Makes mojo aware of this BrowserContext, and assigns a user ID number to
146 // it. Should be called for each BrowserContext created. 146 // it. Should be called for each BrowserContext created.
147 static void Initialize(BrowserContext* browser_context, 147 static void Initialize(BrowserContext* browser_context,
148 const base::FilePath& path); 148 const base::FilePath& path);
149 149
150 // Returns a Mojo User ID associated with this BrowserContext. This ID is not 150 // Returns a Mojo User ID associated with this BrowserContext. This ID is not
151 // persistent across runs. See mojo/shell/public/interfaces/connector.mojom. 151 // persistent across runs. See
152 // services/shell/public/interfaces/connector.mojom.
152 static const std::string& GetMojoUserIdFor(BrowserContext* browser_context); 153 static const std::string& GetMojoUserIdFor(BrowserContext* browser_context);
153 154
154 ~BrowserContext() override; 155 ~BrowserContext() override;
155 156
156 // Creates a delegate to initialize a HostZoomMap and persist its information. 157 // Creates a delegate to initialize a HostZoomMap and persist its information.
157 // This is called during creation of each StoragePartition. 158 // This is called during creation of each StoragePartition.
158 virtual std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( 159 virtual std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate(
159 const base::FilePath& partition_path) = 0; 160 const base::FilePath& partition_path) = 0;
160 161
161 // Returns the path of the directory where this context's data is stored. 162 // Returns the path of the directory where this context's data is stored.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 220 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
220 const base::FilePath& partition_path, 221 const base::FilePath& partition_path,
221 bool in_memory, 222 bool in_memory,
222 ProtocolHandlerMap* protocol_handlers, 223 ProtocolHandlerMap* protocol_handlers,
223 URLRequestInterceptorScopedVector request_interceptors) = 0; 224 URLRequestInterceptorScopedVector request_interceptors) = 0;
224 }; 225 };
225 226
226 } // namespace content 227 } // namespace content
227 228
228 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 229 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/public/DEPS ('k') | content/public/common/mojo_shell_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698