| 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 30 matching lines...) Expand all Loading... |
| 41 const base::FilePath& partition_path, | 41 const base::FilePath& partition_path, |
| 42 bool in_memory) override; | 42 bool in_memory) override; |
| 43 virtual content::ResourceContext* GetResourceContext() override; | 43 virtual content::ResourceContext* GetResourceContext() override; |
| 44 virtual content::DownloadManagerDelegate* | 44 virtual content::DownloadManagerDelegate* |
| 45 GetDownloadManagerDelegate() override; | 45 GetDownloadManagerDelegate() override; |
| 46 virtual content::BrowserPluginGuestManager* GetGuestManager() override; | 46 virtual content::BrowserPluginGuestManager* GetGuestManager() override; |
| 47 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; | 47 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; |
| 48 virtual content::PushMessagingService* GetPushMessagingService() override; | 48 virtual content::PushMessagingService* GetPushMessagingService() override; |
| 49 virtual content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; | 49 virtual content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; |
| 50 | 50 |
| 51 net::URLRequestContextGetter* GetSystemRequestContext(); |
| 52 |
| 51 private: | 53 private: |
| 52 class CastResourceContext; | 54 class CastResourceContext; |
| 53 | 55 |
| 54 // Performs initialization of the CastBrowserContext while IO is still | 56 // Performs initialization of the CastBrowserContext while IO is still |
| 55 // allowed on the current thread. | 57 // allowed on the current thread. |
| 56 void InitWhileIOAllowed(); | 58 void InitWhileIOAllowed(); |
| 57 | 59 |
| 58 URLRequestContextFactory* const url_request_context_factory_; | 60 URLRequestContextFactory* const url_request_context_factory_; |
| 59 base::FilePath path_; | 61 base::FilePath path_; |
| 60 scoped_ptr<CastResourceContext> resource_context_; | 62 scoped_ptr<CastResourceContext> resource_context_; |
| 61 scoped_ptr<CastDownloadManagerDelegate> download_manager_delegate_; | 63 scoped_ptr<CastDownloadManagerDelegate> download_manager_delegate_; |
| 62 | 64 |
| 63 DISALLOW_COPY_AND_ASSIGN(CastBrowserContext); | 65 DISALLOW_COPY_AND_ASSIGN(CastBrowserContext); |
| 64 }; | 66 }; |
| 65 | 67 |
| 66 } // namespace shell | 68 } // namespace shell |
| 67 } // namespace chromecast | 69 } // namespace chromecast |
| 68 | 70 |
| 69 #endif // CHROMECAST_BROWSER_CAST_BROWSER_CONTEXT_H_ | 71 #endif // CHROMECAST_BROWSER_CAST_BROWSER_CONTEXT_H_ |
| OLD | NEW |