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/jni_dependency_factory.h" | 10 #include "android_webview/browser/jni_dependency_factory.h" |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 return GetRequestContext(); | 240 return GetRequestContext(); |
241 } | 241 } |
242 | 242 |
243 net::URLRequestContextGetter* AwBrowserContext::GetMediaRequestContext() { | 243 net::URLRequestContextGetter* AwBrowserContext::GetMediaRequestContext() { |
244 return GetRequestContext(); | 244 return GetRequestContext(); |
245 } | 245 } |
246 | 246 |
247 void AwBrowserContext::RequestMIDISysExPermission( | 247 void AwBrowserContext::RequestMIDISysExPermission( |
248 int render_process_id, | 248 int render_process_id, |
249 int render_view_id, | 249 int render_view_id, |
| 250 int bridge_id, |
250 const GURL& requesting_frame, | 251 const GURL& requesting_frame, |
251 const MIDISysExPermissionCallback& callback) { | 252 const MIDISysExPermissionCallback& callback) { |
252 // TODO(toyoshim): Android is not supported yet. | 253 // TODO(toyoshim): Android is not supported yet. |
253 callback.Run(false); | 254 callback.Run(false); |
254 } | 255 } |
255 | 256 |
256 net::URLRequestContextGetter* | 257 net::URLRequestContextGetter* |
257 AwBrowserContext::GetMediaRequestContextForRenderProcess( | 258 AwBrowserContext::GetMediaRequestContextForRenderProcess( |
258 int renderer_child_id) { | 259 int renderer_child_id) { |
259 return GetRequestContext(); | 260 return GetRequestContext(); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 | 297 |
297 void AwBrowserContext::RebuildTable( | 298 void AwBrowserContext::RebuildTable( |
298 const scoped_refptr<URLEnumerator>& enumerator) { | 299 const scoped_refptr<URLEnumerator>& enumerator) { |
299 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client | 300 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client |
300 // 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. |
301 // Therefore this initialization path is not used. | 302 // Therefore this initialization path is not used. |
302 enumerator->OnComplete(true); | 303 enumerator->OnComplete(true); |
303 } | 304 } |
304 | 305 |
305 } // namespace android_webview | 306 } // namespace android_webview |
OLD | NEW |