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

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

Issue 18647002: Web MIDI: add RequestMIDISysExPermission to BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reduce arguments Created 7 years, 5 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/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
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 // Always reject requests for testing.
jam 2013/07/12 16:06:35 ? This is used for android_webview. why do you say
Takashi Toyoshima 2013/07/12 16:37:30 Oops. Sorry for my poor copy & paste. Fixed.
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698