| 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 |
| 257 void AwBrowserContext::CancelMIDISysExPermissionRequest( |
| 258 int render_process_id, |
| 259 int render_view_id, |
| 260 int bridge_id, |
| 261 const GURL& requesting_frame) { |
| 262 } |
| 263 |
| 256 net::URLRequestContextGetter* | 264 net::URLRequestContextGetter* |
| 257 AwBrowserContext::GetMediaRequestContextForRenderProcess( | 265 AwBrowserContext::GetMediaRequestContextForRenderProcess( |
| 258 int renderer_child_id) { | 266 int renderer_child_id) { |
| 259 return GetRequestContext(); | 267 return GetRequestContext(); |
| 260 } | 268 } |
| 261 | 269 |
| 262 net::URLRequestContextGetter* | 270 net::URLRequestContextGetter* |
| 263 AwBrowserContext::GetMediaRequestContextForStoragePartition( | 271 AwBrowserContext::GetMediaRequestContextForStoragePartition( |
| 264 const base::FilePath& partition_path, | 272 const base::FilePath& partition_path, |
| 265 bool in_memory) { | 273 bool in_memory) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 296 | 304 |
| 297 void AwBrowserContext::RebuildTable( | 305 void AwBrowserContext::RebuildTable( |
| 298 const scoped_refptr<URLEnumerator>& enumerator) { | 306 const scoped_refptr<URLEnumerator>& enumerator) { |
| 299 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client | 307 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client |
| 300 // can change in the lifetime of this WebView and may not yet be set here. | 308 // can change in the lifetime of this WebView and may not yet be set here. |
| 301 // Therefore this initialization path is not used. | 309 // Therefore this initialization path is not used. |
| 302 enumerator->OnComplete(true); | 310 enumerator->OnComplete(true); |
| 303 } | 311 } |
| 304 | 312 |
| 305 } // namespace android_webview | 313 } // namespace android_webview |
| OLD | NEW |