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/aw_resource_context.h" | 10 #include "android_webview/browser/aw_resource_context.h" |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 279 |
280 content::GeolocationPermissionContext* | 280 content::GeolocationPermissionContext* |
281 AwBrowserContext::GetGeolocationPermissionContext() { | 281 AwBrowserContext::GetGeolocationPermissionContext() { |
282 if (!geolocation_permission_context_.get()) { | 282 if (!geolocation_permission_context_.get()) { |
283 geolocation_permission_context_ = | 283 geolocation_permission_context_ = |
284 native_factory_->CreateGeolocationPermission(this); | 284 native_factory_->CreateGeolocationPermission(this); |
285 } | 285 } |
286 return geolocation_permission_context_.get(); | 286 return geolocation_permission_context_.get(); |
287 } | 287 } |
288 | 288 |
289 content::BrowserPluginGuestManagerDelegate* | 289 content::BrowserPluginGuestManager* AwBrowserContext::GetGuestManager() { |
290 AwBrowserContext::GetGuestManagerDelegate() { | |
291 return NULL; | 290 return NULL; |
292 } | 291 } |
293 | 292 |
294 quota::SpecialStoragePolicy* AwBrowserContext::GetSpecialStoragePolicy() { | 293 quota::SpecialStoragePolicy* AwBrowserContext::GetSpecialStoragePolicy() { |
295 // Intentionally returning NULL as 'Extensions' and 'Apps' not supported. | 294 // Intentionally returning NULL as 'Extensions' and 'Apps' not supported. |
296 return NULL; | 295 return NULL; |
297 } | 296 } |
298 | 297 |
299 void AwBrowserContext::RebuildTable( | 298 void AwBrowserContext::RebuildTable( |
300 const scoped_refptr<URLEnumerator>& enumerator) { | 299 const scoped_refptr<URLEnumerator>& enumerator) { |
301 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client | 300 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client |
302 // can change in the lifetime of this WebView and may not yet be set here. | 301 // can change in the lifetime of this WebView and may not yet be set here. |
303 // Therefore this initialization path is not used. | 302 // Therefore this initialization path is not used. |
304 enumerator->OnComplete(true); | 303 enumerator->OnComplete(true); |
305 } | 304 } |
306 | 305 |
307 } // namespace android_webview | 306 } // namespace android_webview |
OLD | NEW |