| 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/aw_resource_context.h" | 10 #include "android_webview/browser/aw_resource_context.h" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 net::URLRequestContextGetter* AwBrowserContext::GetMediaRequestContext() { | 165 net::URLRequestContextGetter* AwBrowserContext::GetMediaRequestContext() { |
| 166 return GetRequestContext(); | 166 return GetRequestContext(); |
| 167 } | 167 } |
| 168 | 168 |
| 169 void AwBrowserContext::RequestMidiSysExPermission( | 169 void AwBrowserContext::RequestMidiSysExPermission( |
| 170 int render_process_id, | 170 int render_process_id, |
| 171 int render_view_id, | 171 int render_view_id, |
| 172 int bridge_id, | 172 int bridge_id, |
| 173 const GURL& requesting_frame, | 173 const GURL& requesting_frame, |
| 174 bool user_gesture, |
| 174 const MidiSysExPermissionCallback& callback) { | 175 const MidiSysExPermissionCallback& callback) { |
| 175 // TODO(toyoshim): Android WebView is not supported yet. | 176 // TODO(toyoshim): Android WebView is not supported yet. |
| 176 // See http://crbug.com/339767. | 177 // See http://crbug.com/339767. |
| 177 callback.Run(false); | 178 callback.Run(false); |
| 178 } | 179 } |
| 179 | 180 |
| 180 void AwBrowserContext::CancelMidiSysExPermissionRequest( | 181 void AwBrowserContext::CancelMidiSysExPermissionRequest( |
| 181 int render_process_id, | 182 int render_process_id, |
| 182 int render_view_id, | 183 int render_view_id, |
| 183 int bridge_id, | 184 int bridge_id, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 244 |
| 244 void AwBrowserContext::RebuildTable( | 245 void AwBrowserContext::RebuildTable( |
| 245 const scoped_refptr<URLEnumerator>& enumerator) { | 246 const scoped_refptr<URLEnumerator>& enumerator) { |
| 246 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client | 247 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client |
| 247 // can change in the lifetime of this WebView and may not yet be set here. | 248 // can change in the lifetime of this WebView and may not yet be set here. |
| 248 // Therefore this initialization path is not used. | 249 // Therefore this initialization path is not used. |
| 249 enumerator->OnComplete(true); | 250 enumerator->OnComplete(true); |
| 250 } | 251 } |
| 251 | 252 |
| 252 } // namespace android_webview | 253 } // namespace android_webview |
| OLD | NEW |