| 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" |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "components/visitedlink/browser/visitedlink_delegate.h" | 16 #include "components/visitedlink/browser/visitedlink_delegate.h" |
| 17 #include "content/public/browser/browser_context.h" | 17 #include "content/public/browser/browser_context.h" |
| 18 #include "content/public/browser/content_browser_client.h" | 18 #include "content/public/browser/content_browser_client.h" |
| 19 #include "net/url_request/url_request_job_factory.h" | 19 #include "net/url_request/url_request_job_factory.h" |
| 20 | 20 |
| 21 class GURL; | 21 class GURL; |
| 22 class PrefService; | 22 class PrefService; |
| 23 | 23 |
| 24 namespace content { | 24 namespace content { |
| 25 class ResourceContext; | 25 class ResourceContext; |
| 26 class WebContents; | 26 class WebContents; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace data_reduction_proxy { | 29 namespace data_reduction_proxy { |
| 30 class DataReductionProxyAuthRequestHandler; |
| 30 class DataReductionProxySettings; | 31 class DataReductionProxySettings; |
| 31 } | 32 } |
| 32 | 33 |
| 33 namespace net { | 34 namespace net { |
| 34 class CookieStore; | 35 class CookieStore; |
| 35 } | 36 } |
| 36 | 37 |
| 37 namespace visitedlink { | 38 namespace visitedlink { |
| 38 class VisitedLinkMaster; | 39 class VisitedLinkMaster; |
| 39 } | 40 } |
| 40 | 41 |
| 42 using data_reduction_proxy::DataReductionProxyAuthRequestHandler; |
| 41 using data_reduction_proxy::DataReductionProxySettings; | 43 using data_reduction_proxy::DataReductionProxySettings; |
| 42 | 44 |
| 43 namespace android_webview { | 45 namespace android_webview { |
| 44 | 46 |
| 45 class AwFormDatabaseService; | 47 class AwFormDatabaseService; |
| 46 class AwQuotaManagerBridge; | 48 class AwQuotaManagerBridge; |
| 47 class AwURLRequestContextGetter; | 49 class AwURLRequestContextGetter; |
| 48 class JniDependencyFactory; | 50 class JniDependencyFactory; |
| 49 | 51 |
| 50 class AwBrowserContext : public content::BrowserContext, | 52 class AwBrowserContext : public content::BrowserContext, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 79 bool in_memory, | 81 bool in_memory, |
| 80 content::ProtocolHandlerMap* protocol_handlers, | 82 content::ProtocolHandlerMap* protocol_handlers, |
| 81 content::URLRequestInterceptorScopedVector request_interceptors); | 83 content::URLRequestInterceptorScopedVector request_interceptors); |
| 82 | 84 |
| 83 AwQuotaManagerBridge* GetQuotaManagerBridge(); | 85 AwQuotaManagerBridge* GetQuotaManagerBridge(); |
| 84 | 86 |
| 85 AwFormDatabaseService* GetFormDatabaseService(); | 87 AwFormDatabaseService* GetFormDatabaseService(); |
| 86 | 88 |
| 87 DataReductionProxySettings* GetDataReductionProxySettings(); | 89 DataReductionProxySettings* GetDataReductionProxySettings(); |
| 88 | 90 |
| 91 DataReductionProxyAuthRequestHandler* |
| 92 GetDataReductionProxyAuthRequestHandler(); |
| 93 |
| 89 void CreateUserPrefServiceIfNecessary(); | 94 void CreateUserPrefServiceIfNecessary(); |
| 90 | 95 |
| 91 // content::BrowserContext implementation. | 96 // content::BrowserContext implementation. |
| 92 virtual base::FilePath GetPath() const OVERRIDE; | 97 virtual base::FilePath GetPath() const OVERRIDE; |
| 93 virtual bool IsOffTheRecord() const OVERRIDE; | 98 virtual bool IsOffTheRecord() const OVERRIDE; |
| 94 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 99 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
| 95 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 100 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
| 96 int renderer_child_id) OVERRIDE; | 101 int renderer_child_id) OVERRIDE; |
| 97 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; | 102 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; |
| 98 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 103 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
| (...skipping 25 matching lines...) Expand all Loading... |
| 124 scoped_ptr<AwFormDatabaseService> form_database_service_; | 129 scoped_ptr<AwFormDatabaseService> form_database_service_; |
| 125 | 130 |
| 126 AwDownloadManagerDelegate download_manager_delegate_; | 131 AwDownloadManagerDelegate download_manager_delegate_; |
| 127 | 132 |
| 128 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; | 133 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; |
| 129 scoped_ptr<content::ResourceContext> resource_context_; | 134 scoped_ptr<content::ResourceContext> resource_context_; |
| 130 | 135 |
| 131 scoped_ptr<PrefService> user_pref_service_; | 136 scoped_ptr<PrefService> user_pref_service_; |
| 132 | 137 |
| 133 scoped_ptr<DataReductionProxySettings> data_reduction_proxy_settings_; | 138 scoped_ptr<DataReductionProxySettings> data_reduction_proxy_settings_; |
| 139 scoped_ptr<DataReductionProxyAuthRequestHandler> |
| 140 data_reduction_proxy_auth_request_handler_; |
| 134 | 141 |
| 135 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); | 142 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); |
| 136 }; | 143 }; |
| 137 | 144 |
| 138 } // namespace android_webview | 145 } // namespace android_webview |
| 139 | 146 |
| 140 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 147 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
| OLD | NEW |