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

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

Issue 185863003: [Media] Add user gesture reporting for API calls to midi and media streams. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test merge Created 6 years, 9 months 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 | Annotate | Revision Log
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/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
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
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
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