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_autofill_manager_delegate.h" | 10 #include "android_webview/browser/aw_autofill_manager_delegate.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 net::URLRequestContextGetter* CreateRequestContext( | 66 net::URLRequestContextGetter* CreateRequestContext( |
67 content::ProtocolHandlerMap* protocol_handlers); | 67 content::ProtocolHandlerMap* protocol_handlers); |
68 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 68 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
69 const base::FilePath& partition_path, | 69 const base::FilePath& partition_path, |
70 bool in_memory, | 70 bool in_memory, |
71 content::ProtocolHandlerMap* protocol_handlers); | 71 content::ProtocolHandlerMap* protocol_handlers); |
72 | 72 |
73 AwQuotaManagerBridge* GetQuotaManagerBridge(); | 73 AwQuotaManagerBridge* GetQuotaManagerBridge(); |
74 | 74 |
75 AwFormDatabaseService* GetFormDatabaseService(); | 75 AwFormDatabaseService* GetFormDatabaseService(); |
76 AwAutofillManagerDelegate* AutofillManagerDelegate(); | 76 void CreateUserPrefServiceIfNecessary(); |
77 AwAutofillManagerDelegate* CreateAutofillManagerDelegate(bool enabled); | |
78 | 77 |
79 // content::BrowserContext implementation. | 78 // content::BrowserContext implementation. |
80 virtual base::FilePath GetPath() OVERRIDE; | 79 virtual base::FilePath GetPath() OVERRIDE; |
81 virtual bool IsOffTheRecord() const OVERRIDE; | 80 virtual bool IsOffTheRecord() const OVERRIDE; |
82 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 81 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
83 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 82 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
84 int renderer_child_id) OVERRIDE; | 83 int renderer_child_id) OVERRIDE; |
85 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; | 84 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; |
86 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 85 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
87 int renderer_child_id) OVERRIDE; | 86 int renderer_child_id) OVERRIDE; |
(...skipping 23 matching lines...) Expand all Loading... |
111 geolocation_permission_context_; | 110 geolocation_permission_context_; |
112 scoped_ptr<AwQuotaManagerBridge> quota_manager_bridge_; | 111 scoped_ptr<AwQuotaManagerBridge> quota_manager_bridge_; |
113 scoped_ptr<AwFormDatabaseService> form_database_service_; | 112 scoped_ptr<AwFormDatabaseService> form_database_service_; |
114 scoped_ptr<AwAutofillManagerDelegate> autofill_manager_delegate_; | 113 scoped_ptr<AwAutofillManagerDelegate> autofill_manager_delegate_; |
115 | 114 |
116 AwDownloadManagerDelegate download_manager_delegate_; | 115 AwDownloadManagerDelegate download_manager_delegate_; |
117 | 116 |
118 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; | 117 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; |
119 scoped_ptr<content::ResourceContext> resource_context_; | 118 scoped_ptr<content::ResourceContext> resource_context_; |
120 | 119 |
| 120 bool user_pref_service_ready_; |
| 121 |
121 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); | 122 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); |
122 }; | 123 }; |
123 | 124 |
124 } // namespace android_webview | 125 } // namespace android_webview |
125 | 126 |
126 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 127 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
OLD | NEW |