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

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

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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 shell { 33 namespace service_manager {
34 class Connector; 34 class Connector;
35 } 35 }
36 36
37 namespace storage { 37 namespace storage {
38 class ExternalMountPoints; 38 class ExternalMountPoints;
39 } 39 }
40 40
41 namespace net { 41 namespace net {
42 class URLRequestContextGetter; 42 class URLRequestContextGetter;
43 } 43 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 static const std::string& GetServiceUserIdFor( 159 static const std::string& GetServiceUserIdFor(
160 BrowserContext* browser_context); 160 BrowserContext* browser_context);
161 161
162 // Returns the BrowserContext associated with |user_id|, or nullptr if no 162 // Returns the BrowserContext associated with |user_id|, or nullptr if no
163 // BrowserContext exists for that |user_id|. 163 // BrowserContext exists for that |user_id|.
164 static BrowserContext* GetBrowserContextForServiceUserId( 164 static BrowserContext* GetBrowserContextForServiceUserId(
165 const std::string& user_id); 165 const std::string& user_id);
166 166
167 // Returns a Connector associated with this BrowserContext, which can be used 167 // Returns a Connector associated with this BrowserContext, which can be used
168 // to connect to service instances bound as this user. 168 // to connect to service instances bound as this user.
169 static shell::Connector* GetConnectorFor(BrowserContext* browser_context); 169 static service_manager::Connector* GetConnectorFor(
170 BrowserContext* browser_context);
170 static ServiceManagerConnection* GetServiceManagerConnectionFor( 171 static ServiceManagerConnection* GetServiceManagerConnectionFor(
171 BrowserContext* browser_context); 172 BrowserContext* browser_context);
172 173
173 ~BrowserContext() override; 174 ~BrowserContext() override;
174 175
175 // Shuts down the storage partitions associated to this browser context. 176 // Shuts down the storage partitions associated to this browser context.
176 // This must be called before the browser context is actually destroyed 177 // This must be called before the browser context is actually destroyed
177 // and before a clean-up task for its corresponding IO thread residents (e.g. 178 // and before a clean-up task for its corresponding IO thread residents (e.g.
178 // ResourceContext) is posted, so that the classes that hung on 179 // ResourceContext) is posted, so that the classes that hung on
179 // StoragePartition can have time to do necessary cleanups on IO thread. 180 // StoragePartition can have time to do necessary cleanups on IO thread.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // called only once per partition_path. 243 // called only once per partition_path.
243 virtual net::URLRequestContextGetter* 244 virtual net::URLRequestContextGetter*
244 CreateMediaRequestContextForStoragePartition( 245 CreateMediaRequestContextForStoragePartition(
245 const base::FilePath& partition_path, 246 const base::FilePath& partition_path,
246 bool in_memory) = 0; 247 bool in_memory) = 0;
247 }; 248 };
248 249
249 } // namespace content 250 } // namespace content
250 251
251 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 252 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_child_process_host.h ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698