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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "android_webview/browser/aw_download_manager_delegate.h" | 10 #include "android_webview/browser/aw_download_manager_delegate.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 AwFormDatabaseService* GetFormDatabaseService(); | 85 AwFormDatabaseService* GetFormDatabaseService(); |
86 | 86 |
87 data_reduction_proxy::DataReductionProxySettings* | 87 data_reduction_proxy::DataReductionProxySettings* |
88 GetDataReductionProxySettings(); | 88 GetDataReductionProxySettings(); |
89 | 89 |
90 AwURLRequestContextGetter* GetAwURLRequestContext(); | 90 AwURLRequestContextGetter* GetAwURLRequestContext(); |
91 | 91 |
92 void CreateUserPrefServiceIfNecessary(); | 92 void CreateUserPrefServiceIfNecessary(); |
93 | 93 |
94 // content::BrowserContext implementation. | 94 // content::BrowserContext implementation. |
95 virtual base::FilePath GetPath() const OVERRIDE; | 95 virtual base::FilePath GetPath() const override; |
96 virtual bool IsOffTheRecord() const OVERRIDE; | 96 virtual bool IsOffTheRecord() const override; |
97 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 97 virtual net::URLRequestContextGetter* GetRequestContext() override; |
98 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 98 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
99 int renderer_child_id) OVERRIDE; | 99 int renderer_child_id) override; |
100 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; | 100 virtual net::URLRequestContextGetter* GetMediaRequestContext() override; |
101 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 101 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
102 int renderer_child_id) OVERRIDE; | 102 int renderer_child_id) override; |
103 virtual net::URLRequestContextGetter* | 103 virtual net::URLRequestContextGetter* |
104 GetMediaRequestContextForStoragePartition( | 104 GetMediaRequestContextForStoragePartition( |
105 const base::FilePath& partition_path, bool in_memory) OVERRIDE; | 105 const base::FilePath& partition_path, bool in_memory) override; |
106 virtual content::ResourceContext* GetResourceContext() OVERRIDE; | 106 virtual content::ResourceContext* GetResourceContext() override; |
107 virtual content::DownloadManagerDelegate* | 107 virtual content::DownloadManagerDelegate* |
108 GetDownloadManagerDelegate() OVERRIDE; | 108 GetDownloadManagerDelegate() override; |
109 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; | 109 virtual content::BrowserPluginGuestManager* GetGuestManager() override; |
110 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 110 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; |
111 virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE; | 111 virtual content::PushMessagingService* GetPushMessagingService() override; |
112 virtual content::SSLHostStateDelegate* GetSSLHostStateDelegate() OVERRIDE; | 112 virtual content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; |
113 | 113 |
114 // visitedlink::VisitedLinkDelegate implementation. | 114 // visitedlink::VisitedLinkDelegate implementation. |
115 virtual void RebuildTable( | 115 virtual void RebuildTable( |
116 const scoped_refptr<URLEnumerator>& enumerator) OVERRIDE; | 116 const scoped_refptr<URLEnumerator>& enumerator) override; |
117 | 117 |
118 private: | 118 private: |
119 static bool data_reduction_proxy_enabled_; | 119 static bool data_reduction_proxy_enabled_; |
120 | 120 |
121 // The file path where data for this context is persisted. | 121 // The file path where data for this context is persisted. |
122 base::FilePath context_storage_path_; | 122 base::FilePath context_storage_path_; |
123 | 123 |
124 JniDependencyFactory* native_factory_; | 124 JniDependencyFactory* native_factory_; |
125 scoped_refptr<net::CookieStore> cookie_store_; | 125 scoped_refptr<net::CookieStore> cookie_store_; |
126 scoped_refptr<AwURLRequestContextGetter> url_request_context_getter_; | 126 scoped_refptr<AwURLRequestContextGetter> url_request_context_getter_; |
(...skipping 11 matching lines...) Expand all Loading... |
138 data_reduction_proxy_configurator_; | 138 data_reduction_proxy_configurator_; |
139 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> | 139 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> |
140 data_reduction_proxy_settings_; | 140 data_reduction_proxy_settings_; |
141 | 141 |
142 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); | 142 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); |
143 }; | 143 }; |
144 | 144 |
145 } // namespace android_webview | 145 } // namespace android_webview |
146 | 146 |
147 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 147 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
OLD | NEW |