Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Side by Side Diff: android_webview/browser/aw_browser_context.cc

Issue 38043004: Cancel MIDI permission request infobar on MIDIAccess stop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delay "requests_.Remove(it.GetCurrentKey());" until we're done using |it|. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « android_webview/browser/aw_browser_context.h ('k') | chrome/browser/media/chrome_midi_permission_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698