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