| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMECAST_BROWSER_CAST_BROWSER_CONTEXT_H_ | 5 #ifndef CHROMECAST_BROWSER_CAST_BROWSER_CONTEXT_H_ |
| 6 #define CHROMECAST_BROWSER_CAST_BROWSER_CONTEXT_H_ | 6 #define CHROMECAST_BROWSER_CAST_BROWSER_CONTEXT_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 const base::FilePath& partition_path, | 38 const base::FilePath& partition_path, |
| 39 bool in_memory) override; | 39 bool in_memory) override; |
| 40 content::ResourceContext* GetResourceContext() override; | 40 content::ResourceContext* GetResourceContext() override; |
| 41 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; | 41 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; |
| 42 content::BrowserPluginGuestManager* GetGuestManager() override; | 42 content::BrowserPluginGuestManager* GetGuestManager() override; |
| 43 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; | 43 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; |
| 44 content::PushMessagingService* GetPushMessagingService() override; | 44 content::PushMessagingService* GetPushMessagingService() override; |
| 45 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; | 45 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; |
| 46 content::PermissionManager* GetPermissionManager() override; | 46 content::PermissionManager* GetPermissionManager() override; |
| 47 content::BackgroundSyncController* GetBackgroundSyncController() override; | 47 content::BackgroundSyncController* GetBackgroundSyncController() override; |
| 48 net::URLRequestContextGetter* CreateRequestContext( |
| 49 content::ProtocolHandlerMap* protocol_handlers, |
| 50 content::URLRequestInterceptorScopedVector request_interceptors) override; |
| 51 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
| 52 const base::FilePath& partition_path, |
| 53 bool in_memory, |
| 54 content::ProtocolHandlerMap* protocol_handlers, |
| 55 content::URLRequestInterceptorScopedVector request_interceptors) override; |
| 48 | 56 |
| 49 net::URLRequestContextGetter* GetSystemRequestContext(); | 57 net::URLRequestContextGetter* GetSystemRequestContext(); |
| 50 | 58 |
| 51 private: | 59 private: |
| 52 class CastResourceContext; | 60 class CastResourceContext; |
| 53 | 61 |
| 54 // Performs initialization of the CastBrowserContext while IO is still | 62 // Performs initialization of the CastBrowserContext while IO is still |
| 55 // allowed on the current thread. | 63 // allowed on the current thread. |
| 56 void InitWhileIOAllowed(); | 64 void InitWhileIOAllowed(); |
| 57 | 65 |
| 58 URLRequestContextFactory* const url_request_context_factory_; | 66 URLRequestContextFactory* const url_request_context_factory_; |
| 59 base::FilePath path_; | 67 base::FilePath path_; |
| 60 scoped_ptr<CastResourceContext> resource_context_; | 68 scoped_ptr<CastResourceContext> resource_context_; |
| 61 scoped_ptr<CastDownloadManagerDelegate> download_manager_delegate_; | 69 scoped_ptr<CastDownloadManagerDelegate> download_manager_delegate_; |
| 62 scoped_ptr<content::PermissionManager> permission_manager_; | 70 scoped_ptr<content::PermissionManager> permission_manager_; |
| 63 | 71 |
| 64 DISALLOW_COPY_AND_ASSIGN(CastBrowserContext); | 72 DISALLOW_COPY_AND_ASSIGN(CastBrowserContext); |
| 65 }; | 73 }; |
| 66 | 74 |
| 67 } // namespace shell | 75 } // namespace shell |
| 68 } // namespace chromecast | 76 } // namespace chromecast |
| 69 | 77 |
| 70 #endif // CHROMECAST_BROWSER_CAST_BROWSER_CONTEXT_H_ | 78 #endif // CHROMECAST_BROWSER_CAST_BROWSER_CONTEXT_H_ |
| OLD | NEW |