Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Side by Side Diff: android_webview/browser/aw_browser_context.cc

Issue 11763002: Implementing native chromium GeolocationPermissionContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Different static cast Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698