| 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/net/aw_url_request_context_getter.h" | 7 #include "android_webview/browser/net/aw_url_request_context_getter.h" |
| 8 | 8 |
| 9 namespace android_webview { | 9 namespace android_webview { |
| 10 | 10 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 return url_request_context_getter_->GetResourceContext(); | 68 return url_request_context_getter_->GetResourceContext(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 content::DownloadManagerDelegate* | 71 content::DownloadManagerDelegate* |
| 72 AwBrowserContext::GetDownloadManagerDelegate() { | 72 AwBrowserContext::GetDownloadManagerDelegate() { |
| 73 return &download_manager_delegate_; | 73 return &download_manager_delegate_; |
| 74 } | 74 } |
| 75 | 75 |
| 76 content::GeolocationPermissionContext* | 76 content::GeolocationPermissionContext* |
| 77 AwBrowserContext::GetGeolocationPermissionContext() { | 77 AwBrowserContext::GetGeolocationPermissionContext() { |
| 78 // TODO(boliu): Implement this to power WebSettings.setGeolocationEnabled | 78 return geolocation_permission_context_; |
| 79 // setting. | |
| 80 NOTIMPLEMENTED(); | |
| 81 return NULL; | |
| 82 } | 79 } |
| 83 | 80 |
| 84 content::SpeechRecognitionPreferences* | 81 content::SpeechRecognitionPreferences* |
| 85 AwBrowserContext::GetSpeechRecognitionPreferences() { | 82 AwBrowserContext::GetSpeechRecognitionPreferences() { |
| 86 // By default allows profanities in speech recognition if return NULL. | 83 // By default allows profanities in speech recognition if return NULL. |
| 87 return NULL; | 84 return NULL; |
| 88 } | 85 } |
| 89 | 86 |
| 90 quota::SpecialStoragePolicy* AwBrowserContext::GetSpecialStoragePolicy() { | 87 quota::SpecialStoragePolicy* AwBrowserContext::GetSpecialStoragePolicy() { |
| 91 // TODO(boliu): Implement this so we are not relying on default behavior. | 88 // TODO(boliu): Implement this so we are not relying on default behavior. |
| 92 NOTIMPLEMENTED(); | 89 NOTIMPLEMENTED(); |
| 93 return NULL; | 90 return NULL; |
| 94 } | 91 } |
| 95 | 92 |
| 93 void AwBrowserContext::set_geolocation_permissions_context( |
| 94 content::GeolocationPermissionContext* geolocation_permission_context) { |
| 95 geolocation_permission_context_ = geolocation_permission_context; |
| 96 } |
| 97 |
| 96 } // namespace android_webview | 98 } // namespace android_webview |
| OLD | NEW |