| 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 ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 static void SetDataReductionProxyEnabled(bool enabled); | 80 static void SetDataReductionProxyEnabled(bool enabled); |
| 81 static void SetLegacyCacheRemovalDelayForTest(int delay_ms); | 81 static void SetLegacyCacheRemovalDelayForTest(int delay_ms); |
| 82 | 82 |
| 83 // Maps to BrowserMainParts::PreMainMessageLoopRun. | 83 // Maps to BrowserMainParts::PreMainMessageLoopRun. |
| 84 void PreMainMessageLoopRun(); | 84 void PreMainMessageLoopRun(); |
| 85 | 85 |
| 86 // These methods map to Add methods in visitedlink::VisitedLinkMaster. | 86 // These methods map to Add methods in visitedlink::VisitedLinkMaster. |
| 87 void AddVisitedURLs(const std::vector<GURL>& urls); | 87 void AddVisitedURLs(const std::vector<GURL>& urls); |
| 88 | 88 |
| 89 net::URLRequestContextGetter* CreateRequestContext( | |
| 90 content::ProtocolHandlerMap* protocol_handlers, | |
| 91 content::URLRequestInterceptorScopedVector request_interceptors); | |
| 92 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | |
| 93 const base::FilePath& partition_path, | |
| 94 bool in_memory, | |
| 95 content::ProtocolHandlerMap* protocol_handlers, | |
| 96 content::URLRequestInterceptorScopedVector request_interceptors); | |
| 97 | |
| 98 AwQuotaManagerBridge* GetQuotaManagerBridge(); | 89 AwQuotaManagerBridge* GetQuotaManagerBridge(); |
| 99 AwFormDatabaseService* GetFormDatabaseService(); | 90 AwFormDatabaseService* GetFormDatabaseService(); |
| 100 data_reduction_proxy::DataReductionProxySettings* | 91 data_reduction_proxy::DataReductionProxySettings* |
| 101 GetDataReductionProxySettings(); | 92 GetDataReductionProxySettings(); |
| 102 data_reduction_proxy::DataReductionProxyIOData* | 93 data_reduction_proxy::DataReductionProxyIOData* |
| 103 GetDataReductionProxyIOData(); | 94 GetDataReductionProxyIOData(); |
| 104 AwURLRequestContextGetter* GetAwURLRequestContext(); | 95 AwURLRequestContextGetter* GetAwURLRequestContext(); |
| 105 AwMessagePortService* GetMessagePortService(); | 96 AwMessagePortService* GetMessagePortService(); |
| 106 | 97 |
| 107 policy::URLBlacklistManager* GetURLBlacklistManager(); | 98 policy::URLBlacklistManager* GetURLBlacklistManager(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 119 const base::FilePath& partition_path, | 110 const base::FilePath& partition_path, |
| 120 bool in_memory) override; | 111 bool in_memory) override; |
| 121 content::ResourceContext* GetResourceContext() override; | 112 content::ResourceContext* GetResourceContext() override; |
| 122 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; | 113 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; |
| 123 content::BrowserPluginGuestManager* GetGuestManager() override; | 114 content::BrowserPluginGuestManager* GetGuestManager() override; |
| 124 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; | 115 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; |
| 125 content::PushMessagingService* GetPushMessagingService() override; | 116 content::PushMessagingService* GetPushMessagingService() override; |
| 126 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; | 117 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; |
| 127 content::PermissionManager* GetPermissionManager() override; | 118 content::PermissionManager* GetPermissionManager() override; |
| 128 content::BackgroundSyncController* GetBackgroundSyncController() override; | 119 content::BackgroundSyncController* GetBackgroundSyncController() override; |
| 120 net::URLRequestContextGetter* CreateRequestContext( |
| 121 content::ProtocolHandlerMap* protocol_handlers, |
| 122 content::URLRequestInterceptorScopedVector request_interceptors) override; |
| 123 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
| 124 const base::FilePath& partition_path, |
| 125 bool in_memory, |
| 126 content::ProtocolHandlerMap* protocol_handlers, |
| 127 content::URLRequestInterceptorScopedVector request_interceptors) override; |
| 129 | 128 |
| 130 // visitedlink::VisitedLinkDelegate implementation. | 129 // visitedlink::VisitedLinkDelegate implementation. |
| 131 void RebuildTable(const scoped_refptr<URLEnumerator>& enumerator) override; | 130 void RebuildTable(const scoped_refptr<URLEnumerator>& enumerator) override; |
| 132 | 131 |
| 133 private: | 132 private: |
| 134 void InitUserPrefService(); | 133 void InitUserPrefService(); |
| 135 void CreateDataReductionProxyStatisticsIfNecessary(); | 134 void CreateDataReductionProxyStatisticsIfNecessary(); |
| 136 static bool data_reduction_proxy_enabled_; | 135 static bool data_reduction_proxy_enabled_; |
| 137 | 136 |
| 138 // Delay, in milliseconds, before removing the legacy cache dir. | 137 // Delay, in milliseconds, before removing the legacy cache dir. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 165 std::unique_ptr<data_reduction_proxy::DataReductionProxyService> | 164 std::unique_ptr<data_reduction_proxy::DataReductionProxyService> |
| 166 data_reduction_proxy_service_; | 165 data_reduction_proxy_service_; |
| 167 std::unique_ptr<content::PermissionManager> permission_manager_; | 166 std::unique_ptr<content::PermissionManager> permission_manager_; |
| 168 | 167 |
| 169 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); | 168 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); |
| 170 }; | 169 }; |
| 171 | 170 |
| 172 } // namespace android_webview | 171 } // namespace android_webview |
| 173 | 172 |
| 174 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 173 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
| OLD | NEW |