| 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 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 namespace net { | 42 namespace net { |
| 43 class URLRequestContextGetter; | 43 class URLRequestContextGetter; |
| 44 } | 44 } |
| 45 | 45 |
| 46 namespace storage { | 46 namespace storage { |
| 47 class SpecialStoragePolicy; | 47 class SpecialStoragePolicy; |
| 48 } | 48 } |
| 49 | 49 |
| 50 namespace content { | 50 namespace content { |
| 51 | 51 |
| 52 class BackgroundFetchClient; |
| 52 class BackgroundSyncController; | 53 class BackgroundSyncController; |
| 53 class BlobHandle; | 54 class BlobHandle; |
| 54 class BrowserPluginGuestManager; | 55 class BrowserPluginGuestManager; |
| 55 class DownloadManager; | 56 class DownloadManager; |
| 56 class DownloadManagerDelegate; | 57 class DownloadManagerDelegate; |
| 57 class PermissionManager; | 58 class PermissionManager; |
| 58 class PushMessagingService; | 59 class PushMessagingService; |
| 59 class ResourceContext; | 60 class ResourceContext; |
| 60 class ServiceManagerConnection; | 61 class ServiceManagerConnection; |
| 61 class SiteInstance; | 62 class SiteInstance; |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 virtual PushMessagingService* GetPushMessagingService() = 0; | 212 virtual PushMessagingService* GetPushMessagingService() = 0; |
| 212 | 213 |
| 213 // Returns the SSL host state decisions for this context. The context may | 214 // Returns the SSL host state decisions for this context. The context may |
| 214 // return nullptr, implementing the default exception storage strategy. | 215 // return nullptr, implementing the default exception storage strategy. |
| 215 virtual SSLHostStateDelegate* GetSSLHostStateDelegate() = 0; | 216 virtual SSLHostStateDelegate* GetSSLHostStateDelegate() = 0; |
| 216 | 217 |
| 217 // Returns the PermissionManager associated with that context if any, nullptr | 218 // Returns the PermissionManager associated with that context if any, nullptr |
| 218 // otherwise. | 219 // otherwise. |
| 219 virtual PermissionManager* GetPermissionManager() = 0; | 220 virtual PermissionManager* GetPermissionManager() = 0; |
| 220 | 221 |
| 222 // Returns the BackgroundFetchClient associated with the context if any, |
| 223 // nullptr otherwise. |
| 224 virtual BackgroundFetchClient* GetBackgroundFetchClient() = 0; |
| 225 |
| 221 // Returns the BackgroundSyncController associated with that context if any, | 226 // Returns the BackgroundSyncController associated with that context if any, |
| 222 // nullptr otherwise. | 227 // nullptr otherwise. |
| 223 virtual BackgroundSyncController* GetBackgroundSyncController() = 0; | 228 virtual BackgroundSyncController* GetBackgroundSyncController() = 0; |
| 224 | 229 |
| 225 // Creates the main net::URLRequestContextGetter. It's called only once. | 230 // Creates the main net::URLRequestContextGetter. It's called only once. |
| 226 virtual net::URLRequestContextGetter* CreateRequestContext( | 231 virtual net::URLRequestContextGetter* CreateRequestContext( |
| 227 ProtocolHandlerMap* protocol_handlers, | 232 ProtocolHandlerMap* protocol_handlers, |
| 228 URLRequestInterceptorScopedVector request_interceptors) = 0; | 233 URLRequestInterceptorScopedVector request_interceptors) = 0; |
| 229 | 234 |
| 230 // Creates the net::URLRequestContextGetter for a StoragePartition. It's | 235 // Creates the net::URLRequestContextGetter for a StoragePartition. It's |
| (...skipping 18 matching lines...) Expand all Loading... |
| 249 using StaticServiceMap = std::map<std::string, ServiceInfo>; | 254 using StaticServiceMap = std::map<std::string, ServiceInfo>; |
| 250 | 255 |
| 251 // Registers per-browser-context services to be loaded in the browser process | 256 // Registers per-browser-context services to be loaded in the browser process |
| 252 // by the Service Manager. | 257 // by the Service Manager. |
| 253 virtual void RegisterInProcessServices(StaticServiceMap* services) {} | 258 virtual void RegisterInProcessServices(StaticServiceMap* services) {} |
| 254 }; | 259 }; |
| 255 | 260 |
| 256 } // namespace content | 261 } // namespace content |
| 257 | 262 |
| 258 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 263 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
| OLD | NEW |