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 #include "android_webview/browser/aw_browser_context.h" | 5 #include "android_webview/browser/aw_browser_context.h" |
6 | 6 |
7 #include "android_webview/browser/aw_form_database_service.h" | 7 #include "android_webview/browser/aw_form_database_service.h" |
8 #include "android_webview/browser/aw_pref_store.h" | 8 #include "android_webview/browser/aw_pref_store.h" |
9 #include "android_webview/browser/aw_quota_manager_bridge.h" | 9 #include "android_webview/browser/aw_quota_manager_bridge.h" |
10 #include "android_webview/browser/jni_dependency_factory.h" | 10 #include "android_webview/browser/jni_dependency_factory.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 net::URLRequestContextGetter* | 179 net::URLRequestContextGetter* |
180 AwBrowserContext::CreateRequestContextForStoragePartition( | 180 AwBrowserContext::CreateRequestContextForStoragePartition( |
181 const base::FilePath& partition_path, | 181 const base::FilePath& partition_path, |
182 bool in_memory, | 182 bool in_memory, |
183 content::ProtocolHandlerMap* protocol_handlers) { | 183 content::ProtocolHandlerMap* protocol_handlers) { |
184 NOTREACHED(); | 184 NOTREACHED(); |
185 return NULL; | 185 return NULL; |
186 } | 186 } |
187 | 187 |
188 AwQuotaManagerBridge* AwBrowserContext::GetQuotaManagerBridge() { | 188 AwQuotaManagerBridge* AwBrowserContext::GetQuotaManagerBridge() { |
189 if (!quota_manager_bridge_) { | 189 if (!quota_manager_bridge_.get()) { |
190 quota_manager_bridge_.reset( | 190 quota_manager_bridge_ = native_factory_->CreateAwQuotaManagerBridge(this); |
191 native_factory_->CreateAwQuotaManagerBridge(this)); | |
192 } | 191 } |
193 return quota_manager_bridge_.get(); | 192 return quota_manager_bridge_.get(); |
194 } | 193 } |
195 | 194 |
196 AwFormDatabaseService* AwBrowserContext::GetFormDatabaseService() { | 195 AwFormDatabaseService* AwBrowserContext::GetFormDatabaseService() { |
197 return form_database_service_.get(); | 196 return form_database_service_.get(); |
198 } | 197 } |
199 | 198 |
200 // Create user pref service for autofill functionality. | 199 // Create user pref service for autofill functionality. |
201 void AwBrowserContext::CreateUserPrefServiceIfNecessary() { | 200 void AwBrowserContext::CreateUserPrefServiceIfNecessary() { |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 | 296 |
298 void AwBrowserContext::RebuildTable( | 297 void AwBrowserContext::RebuildTable( |
299 const scoped_refptr<URLEnumerator>& enumerator) { | 298 const scoped_refptr<URLEnumerator>& enumerator) { |
300 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client | 299 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client |
301 // can change in the lifetime of this WebView and may not yet be set here. | 300 // can change in the lifetime of this WebView and may not yet be set here. |
302 // Therefore this initialization path is not used. | 301 // Therefore this initialization path is not used. |
303 enumerator->OnComplete(true); | 302 enumerator->OnComplete(true); |
304 } | 303 } |
305 | 304 |
306 } // namespace android_webview | 305 } // namespace android_webview |
OLD | NEW |