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