| 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_browser_permission_request_delegate.h" | 7 #include "android_webview/browser/aw_browser_permission_request_delegate.h" |
| 8 #include "android_webview/browser/aw_form_database_service.h" | 8 #include "android_webview/browser/aw_form_database_service.h" |
| 9 #include "android_webview/browser/aw_pref_store.h" | 9 #include "android_webview/browser/aw_pref_store.h" |
| 10 #include "android_webview/browser/aw_quota_manager_bridge.h" | 10 #include "android_webview/browser/aw_quota_manager_bridge.h" |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 new AwResourceContext(url_request_context_getter_.get())); | 293 new AwResourceContext(url_request_context_getter_.get())); |
| 294 } | 294 } |
| 295 return resource_context_.get(); | 295 return resource_context_.get(); |
| 296 } | 296 } |
| 297 | 297 |
| 298 content::DownloadManagerDelegate* | 298 content::DownloadManagerDelegate* |
| 299 AwBrowserContext::GetDownloadManagerDelegate() { | 299 AwBrowserContext::GetDownloadManagerDelegate() { |
| 300 return &download_manager_delegate_; | 300 return &download_manager_delegate_; |
| 301 } | 301 } |
| 302 | 302 |
| 303 content::GeolocationPermissionContext* | |
| 304 AwBrowserContext::GetGeolocationPermissionContext() { | |
| 305 if (!geolocation_permission_context_.get()) { | |
| 306 geolocation_permission_context_ = | |
| 307 native_factory_->CreateGeolocationPermission(this); | |
| 308 } | |
| 309 return geolocation_permission_context_.get(); | |
| 310 } | |
| 311 | |
| 312 content::BrowserPluginGuestManager* AwBrowserContext::GetGuestManager() { | 303 content::BrowserPluginGuestManager* AwBrowserContext::GetGuestManager() { |
| 313 return NULL; | 304 return NULL; |
| 314 } | 305 } |
| 315 | 306 |
| 316 quota::SpecialStoragePolicy* AwBrowserContext::GetSpecialStoragePolicy() { | 307 quota::SpecialStoragePolicy* AwBrowserContext::GetSpecialStoragePolicy() { |
| 317 // Intentionally returning NULL as 'Extensions' and 'Apps' not supported. | 308 // Intentionally returning NULL as 'Extensions' and 'Apps' not supported. |
| 318 return NULL; | 309 return NULL; |
| 319 } | 310 } |
| 320 | 311 |
| 321 content::PushMessagingService* AwBrowserContext::GetPushMessagingService() { | 312 content::PushMessagingService* AwBrowserContext::GetPushMessagingService() { |
| 322 // TODO(johnme): Support push messaging in WebView. | 313 // TODO(johnme): Support push messaging in WebView. |
| 323 return NULL; | 314 return NULL; |
| 324 } | 315 } |
| 325 | 316 |
| 326 void AwBrowserContext::RebuildTable( | 317 void AwBrowserContext::RebuildTable( |
| 327 const scoped_refptr<URLEnumerator>& enumerator) { | 318 const scoped_refptr<URLEnumerator>& enumerator) { |
| 328 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client | 319 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client |
| 329 // can change in the lifetime of this WebView and may not yet be set here. | 320 // can change in the lifetime of this WebView and may not yet be set here. |
| 330 // Therefore this initialization path is not used. | 321 // Therefore this initialization path is not used. |
| 331 enumerator->OnComplete(true); | 322 enumerator->OnComplete(true); |
| 332 } | 323 } |
| 333 | 324 |
| 334 } // namespace android_webview | 325 } // namespace android_webview |
| OLD | NEW |