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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 content::GeolocationPermissionContext* | 240 content::GeolocationPermissionContext* |
241 AwBrowserContext::GetGeolocationPermissionContext() { | 241 AwBrowserContext::GetGeolocationPermissionContext() { |
242 if (!geolocation_permission_context_.get()) { | 242 if (!geolocation_permission_context_.get()) { |
243 geolocation_permission_context_ = | 243 geolocation_permission_context_ = |
244 native_factory_->CreateGeolocationPermission(this); | 244 native_factory_->CreateGeolocationPermission(this); |
245 } | 245 } |
246 return geolocation_permission_context_.get(); | 246 return geolocation_permission_context_.get(); |
247 } | 247 } |
248 | 248 |
249 quota::SpecialStoragePolicy* AwBrowserContext::GetSpecialStoragePolicy() { | 249 quota::SpecialStoragePolicy* AwBrowserContext::GetSpecialStoragePolicy() { |
250 // TODO(boliu): Implement this so we are not relying on default behavior. | 250 // Intentionally returning NULL as 'Extensions' and 'Apps' not supported. |
251 NOTIMPLEMENTED(); | |
252 return NULL; | 251 return NULL; |
253 } | 252 } |
254 | 253 |
255 void AwBrowserContext::RebuildTable( | 254 void AwBrowserContext::RebuildTable( |
256 const scoped_refptr<URLEnumerator>& enumerator) { | 255 const scoped_refptr<URLEnumerator>& enumerator) { |
257 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client | 256 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client |
258 // can change in the lifetime of this WebView and may not yet be set here. | 257 // can change in the lifetime of this WebView and may not yet be set here. |
259 // Therefore this initialization path is not used. | 258 // Therefore this initialization path is not used. |
260 enumerator->OnComplete(true); | 259 enumerator->OnComplete(true); |
261 } | 260 } |
262 | 261 |
263 } // namespace android_webview | 262 } // namespace android_webview |
OLD | NEW |