| 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_SHELL_BROWSER_CAST_BROWSER_CONTEXT_H_ | 5 #ifndef CHROMECAST_SHELL_BROWSER_CAST_BROWSER_CONTEXT_H_ |
| 6 #define CHROMECAST_SHELL_BROWSER_CAST_BROWSER_CONTEXT_H_ | 6 #define CHROMECAST_SHELL_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 25 matching lines...) Expand all Loading... |
| 36 virtual net::URLRequestContextGetter* | 36 virtual net::URLRequestContextGetter* |
| 37 GetMediaRequestContextForStoragePartition( | 37 GetMediaRequestContextForStoragePartition( |
| 38 const base::FilePath& partition_path, | 38 const base::FilePath& partition_path, |
| 39 bool in_memory) OVERRIDE; | 39 bool in_memory) OVERRIDE; |
| 40 virtual content::ResourceContext* GetResourceContext() OVERRIDE; | 40 virtual content::ResourceContext* GetResourceContext() OVERRIDE; |
| 41 virtual content::DownloadManagerDelegate* | 41 virtual content::DownloadManagerDelegate* |
| 42 GetDownloadManagerDelegate() OVERRIDE; | 42 GetDownloadManagerDelegate() OVERRIDE; |
| 43 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; | 43 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; |
| 44 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 44 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
| 45 virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE; | 45 virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE; |
| 46 virtual content::SSLHostStateDelegate* GetSSLHostStateDelegate() OVERRIDE; |
| 46 | 47 |
| 47 private: | 48 private: |
| 48 class CastResourceContext; | 49 class CastResourceContext; |
| 49 | 50 |
| 50 // Performs initialization of the CastBrowserContext while IO is still | 51 // Performs initialization of the CastBrowserContext while IO is still |
| 51 // allowed on the current thread. | 52 // allowed on the current thread. |
| 52 void InitWhileIOAllowed(); | 53 void InitWhileIOAllowed(); |
| 53 | 54 |
| 54 URLRequestContextFactory* const url_request_context_factory_; | 55 URLRequestContextFactory* const url_request_context_factory_; |
| 55 base::FilePath path_; | 56 base::FilePath path_; |
| 56 scoped_ptr<CastResourceContext> resource_context_; | 57 scoped_ptr<CastResourceContext> resource_context_; |
| 57 | 58 |
| 58 DISALLOW_COPY_AND_ASSIGN(CastBrowserContext); | 59 DISALLOW_COPY_AND_ASSIGN(CastBrowserContext); |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 } // namespace shell | 62 } // namespace shell |
| 62 } // namespace chromecast | 63 } // namespace chromecast |
| 63 | 64 |
| 64 #endif // CHROMECAST_SHELL_BROWSER_CAST_BROWSER_CONTEXT_H_ | 65 #endif // CHROMECAST_SHELL_BROWSER_CAST_BROWSER_CONTEXT_H_ |
| OLD | NEW |