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: 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(crbug.com/339767): Android is not supported yet.
boliu 2014/01/31 15:51:33 nit: This is unconventional. Why not just put the
scherkus (not reviewing) 2014/01/31 20:48:54 +1 -- keep it: TODO(username): Summary of what ne
Takashi Toyoshima 2014/02/03 04:24:53 Thanks. I update the comment to say it's WebView.
176 callback.Run(false); 176 callback.Run(false);
177 } 177 }
178 178
179 void AwBrowserContext::CancelMIDISysExPermissionRequest( 179 void AwBrowserContext::CancelMidiSysExPermissionRequest(
180 int render_process_id, 180 int render_process_id,
181 int render_view_id, 181 int render_view_id,
182 int bridge_id, 182 int bridge_id,
183 const GURL& requesting_frame) { 183 const GURL& requesting_frame) {
184 } 184 }
185 185
186 void AwBrowserContext::RequestProtectedMediaIdentifierPermission( 186 void AwBrowserContext::RequestProtectedMediaIdentifierPermission(
187 int render_process_id, 187 int render_process_id,
188 int render_view_id, 188 int render_view_id,
189 int bridge_id, 189 int bridge_id,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 void AwBrowserContext::RebuildTable( 243 void AwBrowserContext::RebuildTable(
244 const scoped_refptr<URLEnumerator>& enumerator) { 244 const scoped_refptr<URLEnumerator>& enumerator) {
245 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client 245 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client
246 // can change in the lifetime of this WebView and may not yet be set here. 246 // can change in the lifetime of this WebView and may not yet be set here.
247 // Therefore this initialization path is not used. 247 // Therefore this initialization path is not used.
248 enumerator->OnComplete(true); 248 enumerator->OnComplete(true);
249 } 249 }
250 250
251 } // namespace android_webview 251 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698