| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 net::URLRequestContextGetter* | 217 net::URLRequestContextGetter* |
| 218 AwBrowserContext::GetRequestContextForRenderProcess( | 218 AwBrowserContext::GetRequestContextForRenderProcess( |
| 219 int renderer_child_id) { | 219 int renderer_child_id) { |
| 220 return GetRequestContext(); | 220 return GetRequestContext(); |
| 221 } | 221 } |
| 222 | 222 |
| 223 net::URLRequestContextGetter* AwBrowserContext::GetMediaRequestContext() { | 223 net::URLRequestContextGetter* AwBrowserContext::GetMediaRequestContext() { |
| 224 return GetRequestContext(); | 224 return GetRequestContext(); |
| 225 } | 225 } |
| 226 | 226 |
| 227 void AwBrowserContext::RequestMidiSysExPermission( | |
| 228 int render_process_id, | |
| 229 int render_view_id, | |
| 230 int bridge_id, | |
| 231 const GURL& requesting_frame, | |
| 232 bool user_gesture, | |
| 233 const MidiSysExPermissionCallback& callback) { | |
| 234 // TODO(toyoshim): Android WebView is not supported yet. | |
| 235 // See http://crbug.com/339767. | |
| 236 callback.Run(false); | |
| 237 } | |
| 238 | |
| 239 void AwBrowserContext::CancelMidiSysExPermissionRequest( | |
| 240 int render_process_id, | |
| 241 int render_view_id, | |
| 242 int bridge_id, | |
| 243 const GURL& requesting_frame) { | |
| 244 } | |
| 245 | |
| 246 void AwBrowserContext::RequestProtectedMediaIdentifierPermission( | 227 void AwBrowserContext::RequestProtectedMediaIdentifierPermission( |
| 247 int render_process_id, | 228 int render_process_id, |
| 248 int render_view_id, | 229 int render_view_id, |
| 249 const GURL& origin, | 230 const GURL& origin, |
| 250 const ProtectedMediaIdentifierPermissionCallback& callback) { | 231 const ProtectedMediaIdentifierPermissionCallback& callback) { |
| 251 AwBrowserPermissionRequestDelegate* delegate = | 232 AwBrowserPermissionRequestDelegate* delegate = |
| 252 AwBrowserPermissionRequestDelegate::FromID(render_process_id, | 233 AwBrowserPermissionRequestDelegate::FromID(render_process_id, |
| 253 render_view_id); | 234 render_view_id); |
| 254 if (delegate == NULL) { | 235 if (delegate == NULL) { |
| 255 DVLOG(0) << "Dropping ProtectedMediaIdentifierPermission request"; | 236 DVLOG(0) << "Dropping ProtectedMediaIdentifierPermission request"; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 | 297 |
| 317 void AwBrowserContext::RebuildTable( | 298 void AwBrowserContext::RebuildTable( |
| 318 const scoped_refptr<URLEnumerator>& enumerator) { | 299 const scoped_refptr<URLEnumerator>& enumerator) { |
| 319 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client | 300 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client |
| 320 // 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. |
| 321 // Therefore this initialization path is not used. | 302 // Therefore this initialization path is not used. |
| 322 enumerator->OnComplete(true); | 303 enumerator->OnComplete(true); |
| 323 } | 304 } |
| 324 | 305 |
| 325 } // namespace android_webview | 306 } // namespace android_webview |
| OLD | NEW |