OLD | NEW |
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 |
11 #include <map> | 11 #include <map> |
12 #include <memory> | 12 #include <memory> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/callback_forward.h" | 15 #include "base/callback_forward.h" |
16 #include "base/containers/hash_tables.h" | 16 #include "base/containers/hash_tables.h" |
17 #include "base/memory/linked_ptr.h" | 17 #include "base/memory/linked_ptr.h" |
18 #include "base/supports_user_data.h" | 18 #include "base/supports_user_data.h" |
19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
20 #include "content/public/browser/zoom_level_delegate.h" | 20 #include "content/public/browser/zoom_level_delegate.h" |
21 #include "content/public/common/push_event_payload.h" | 21 #include "content/public/common/push_event_payload.h" |
22 #include "content/public/common/push_messaging_status.h" | 22 #include "content/public/common/push_messaging_status.h" |
| 23 #include "content/public/common/service_info.h" |
23 #include "net/url_request/url_request_interceptor.h" | 24 #include "net/url_request/url_request_interceptor.h" |
24 #include "net/url_request/url_request_job_factory.h" | 25 #include "net/url_request/url_request_job_factory.h" |
25 | 26 |
26 class GURL; | 27 class GURL; |
27 | 28 |
28 namespace base { | 29 namespace base { |
29 class FilePath; | 30 class FilePath; |
30 class Time; | 31 class Time; |
31 } | 32 } |
32 | 33 |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 // Creates the main net::URLRequestContextGetter for media resources. It's | 238 // Creates the main net::URLRequestContextGetter for media resources. It's |
238 // called only once. | 239 // called only once. |
239 virtual net::URLRequestContextGetter* CreateMediaRequestContext() = 0; | 240 virtual net::URLRequestContextGetter* CreateMediaRequestContext() = 0; |
240 | 241 |
241 // Creates the media net::URLRequestContextGetter for a StoragePartition. It's | 242 // Creates the media net::URLRequestContextGetter for a StoragePartition. It's |
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; |
| 248 |
| 249 using StaticServiceMap = std::map<std::string, ServiceInfo>; |
| 250 |
| 251 // Registers per-browser-context services to be loaded in the browser process |
| 252 // by the Service Manager. |
| 253 virtual void RegisterInProcessServices(StaticServiceMap* services) {} |
247 }; | 254 }; |
248 | 255 |
249 } // namespace content | 256 } // namespace content |
250 | 257 |
251 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 258 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
OLD | NEW |