| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 content::ProtocolHandlerMap* protocol_handlers); | 70 content::ProtocolHandlerMap* protocol_handlers); |
| 71 | 71 |
| 72 AwQuotaManagerBridge* GetQuotaManagerBridge(); | 72 AwQuotaManagerBridge* GetQuotaManagerBridge(); |
| 73 | 73 |
| 74 AwFormDatabaseService* GetFormDatabaseService(); | 74 AwFormDatabaseService* GetFormDatabaseService(); |
| 75 void CreateUserPrefServiceIfNecessary(); | 75 void CreateUserPrefServiceIfNecessary(); |
| 76 | 76 |
| 77 // content::BrowserContext implementation. | 77 // content::BrowserContext implementation. |
| 78 virtual base::FilePath GetPath() const OVERRIDE; | 78 virtual base::FilePath GetPath() const OVERRIDE; |
| 79 virtual bool IsOffTheRecord() const OVERRIDE; | 79 virtual bool IsOffTheRecord() const OVERRIDE; |
| 80 virtual content::CookieStoreConfig GetCookieStoreConfig() OVERRIDE; |
| 80 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 81 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
| 81 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 82 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
| 82 int renderer_child_id) OVERRIDE; | 83 int renderer_child_id) OVERRIDE; |
| 83 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; | 84 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; |
| 84 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 85 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
| 85 int renderer_child_id) OVERRIDE; | 86 int renderer_child_id) OVERRIDE; |
| 86 virtual net::URLRequestContextGetter* | 87 virtual net::URLRequestContextGetter* |
| 87 GetMediaRequestContextForStoragePartition( | 88 GetMediaRequestContextForStoragePartition( |
| 88 const base::FilePath& partition_path, bool in_memory) OVERRIDE; | 89 const base::FilePath& partition_path, bool in_memory) OVERRIDE; |
| 89 virtual void RequestMIDISysExPermission( | 90 virtual void RequestMIDISysExPermission( |
| (...skipping 11 matching lines...) Expand all Loading... |
| 101 // visitedlink::VisitedLinkDelegate implementation. | 102 // visitedlink::VisitedLinkDelegate implementation. |
| 102 virtual void RebuildTable( | 103 virtual void RebuildTable( |
| 103 const scoped_refptr<URLEnumerator>& enumerator) OVERRIDE; | 104 const scoped_refptr<URLEnumerator>& enumerator) OVERRIDE; |
| 104 | 105 |
| 105 private: | 106 private: |
| 106 // The file path where data for this context is persisted. | 107 // The file path where data for this context is persisted. |
| 107 base::FilePath context_storage_path_; | 108 base::FilePath context_storage_path_; |
| 108 | 109 |
| 109 JniDependencyFactory* native_factory_; | 110 JniDependencyFactory* native_factory_; |
| 110 scoped_refptr<AwURLRequestContextGetter> url_request_context_getter_; | 111 scoped_refptr<AwURLRequestContextGetter> url_request_context_getter_; |
| 112 scoped_refptr<net::CookieStore> cookie_store_; |
| 111 scoped_refptr<content::GeolocationPermissionContext> | 113 scoped_refptr<content::GeolocationPermissionContext> |
| 112 geolocation_permission_context_; | 114 geolocation_permission_context_; |
| 113 scoped_ptr<AwQuotaManagerBridge> quota_manager_bridge_; | 115 scoped_ptr<AwQuotaManagerBridge> quota_manager_bridge_; |
| 114 scoped_ptr<AwFormDatabaseService> form_database_service_; | 116 scoped_ptr<AwFormDatabaseService> form_database_service_; |
| 115 | 117 |
| 116 AwDownloadManagerDelegate download_manager_delegate_; | 118 AwDownloadManagerDelegate download_manager_delegate_; |
| 117 | 119 |
| 118 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; | 120 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; |
| 119 scoped_ptr<content::ResourceContext> resource_context_; | 121 scoped_ptr<content::ResourceContext> resource_context_; |
| 120 | 122 |
| 121 bool user_pref_service_ready_; | 123 bool user_pref_service_ready_; |
| 122 | 124 |
| 123 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); | 125 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); |
| 124 }; | 126 }; |
| 125 | 127 |
| 126 } // namespace android_webview | 128 } // namespace android_webview |
| 127 | 129 |
| 128 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 130 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
| OLD | NEW |