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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 net::URLRequestContextGetter* | 173 net::URLRequestContextGetter* |
174 AwBrowserContext::GetRequestContextForRenderProcess( | 174 AwBrowserContext::GetRequestContextForRenderProcess( |
175 int renderer_child_id) { | 175 int renderer_child_id) { |
176 return GetRequestContext(); | 176 return GetRequestContext(); |
177 } | 177 } |
178 | 178 |
179 net::URLRequestContextGetter* AwBrowserContext::GetMediaRequestContext() { | 179 net::URLRequestContextGetter* AwBrowserContext::GetMediaRequestContext() { |
180 return GetRequestContext(); | 180 return GetRequestContext(); |
181 } | 181 } |
182 | 182 |
| 183 void AwBrowserContext::RequestMIDISysExPermission( |
| 184 int render_process_id, |
| 185 int render_view_id, |
| 186 const GURL& requesting_frame, |
| 187 const MIDISysExPermissionCallback& callback) { |
| 188 // TODO(toyoshim): Android is not supported yet. |
| 189 callback.Run(false); |
| 190 } |
| 191 |
183 net::URLRequestContextGetter* | 192 net::URLRequestContextGetter* |
184 AwBrowserContext::GetMediaRequestContextForRenderProcess( | 193 AwBrowserContext::GetMediaRequestContextForRenderProcess( |
185 int renderer_child_id) { | 194 int renderer_child_id) { |
186 return GetRequestContext(); | 195 return GetRequestContext(); |
187 } | 196 } |
188 | 197 |
189 net::URLRequestContextGetter* | 198 net::URLRequestContextGetter* |
190 AwBrowserContext::GetMediaRequestContextForStoragePartition( | 199 AwBrowserContext::GetMediaRequestContextForStoragePartition( |
191 const base::FilePath& partition_path, | 200 const base::FilePath& partition_path, |
192 bool in_memory) { | 201 bool in_memory) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 233 |
225 void AwBrowserContext::RebuildTable( | 234 void AwBrowserContext::RebuildTable( |
226 const scoped_refptr<URLEnumerator>& enumerator) { | 235 const scoped_refptr<URLEnumerator>& enumerator) { |
227 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client | 236 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client |
228 // can change in the lifetime of this WebView and may not yet be set here. | 237 // can change in the lifetime of this WebView and may not yet be set here. |
229 // Therefore this initialization path is not used. | 238 // Therefore this initialization path is not used. |
230 enumerator->OnComplete(true); | 239 enumerator->OnComplete(true); |
231 } | 240 } |
232 | 241 |
233 } // namespace android_webview | 242 } // namespace android_webview |
OLD | NEW |