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

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

Issue 151343002: Web MIDI: make naming convention be consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review boliu #2 Created 6 years, 10 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 net::URLRequestContextGetter* 159 net::URLRequestContextGetter*
160 AwBrowserContext::GetRequestContextForRenderProcess( 160 AwBrowserContext::GetRequestContextForRenderProcess(
161 int renderer_child_id) { 161 int renderer_child_id) {
162 return GetRequestContext(); 162 return GetRequestContext();
163 } 163 }
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 const MIDISysExPermissionCallback& callback) { 174 const MidiSysExPermissionCallback& callback) {
175 // TODO(toyoshim): Android is not supported yet. 175 // TODO(toyoshim): Android WebView is not supported yet.
176 // See http://crbug.com/339767.
176 callback.Run(false); 177 callback.Run(false);
177 } 178 }
178 179
179 void AwBrowserContext::CancelMIDISysExPermissionRequest( 180 void AwBrowserContext::CancelMidiSysExPermissionRequest(
180 int render_process_id, 181 int render_process_id,
181 int render_view_id, 182 int render_view_id,
182 int bridge_id, 183 int bridge_id,
183 const GURL& requesting_frame) { 184 const GURL& requesting_frame) {
184 } 185 }
185 186
186 void AwBrowserContext::RequestProtectedMediaIdentifierPermission( 187 void AwBrowserContext::RequestProtectedMediaIdentifierPermission(
187 int render_process_id, 188 int render_process_id,
188 int render_view_id, 189 int render_view_id,
189 int bridge_id, 190 int bridge_id,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 243
243 void AwBrowserContext::RebuildTable( 244 void AwBrowserContext::RebuildTable(
244 const scoped_refptr<URLEnumerator>& enumerator) { 245 const scoped_refptr<URLEnumerator>& enumerator) {
245 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client 246 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client
246 // can change in the lifetime of this WebView and may not yet be set here. 247 // can change in the lifetime of this WebView and may not yet be set here.
247 // Therefore this initialization path is not used. 248 // Therefore this initialization path is not used.
248 enumerator->OnComplete(true); 249 enumerator->OnComplete(true);
249 } 250 }
250 251
251 } // namespace android_webview 252 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698