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

Side by Side Diff: content/shell/browser/shell_browser_context.cc

Issue 123663002: Allow MIDI permission in content shell's ShellBrowserContext::RequestMIDISysExPermission. By defaul… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/shell/browser/shell_browser_context.h" 5 #include "content/shell/browser/shell_browser_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 const MIDISysExPermissionCallback& callback) { 184 const MIDISysExPermissionCallback& callback) {
185 // Always reject requests for LayoutTests for now. 185 // Always reject requests for LayoutTests for now.
186 // TODO(toyoshim): Make it programmable to improve test coverage. 186 // TODO(toyoshim): Make it programmable to improve test coverage.
187 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) { 187 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) {
188 callback.Run(false); 188 callback.Run(false);
189 return; 189 return;
190 } 190 }
191 // TODO(toyoshim): Implement. http://crbug.com/257618 . 191 callback.Run(true);
192 callback.Run(false);
193 } 192 }
194 193
195 void ShellBrowserContext::CancelMIDISysExPermissionRequest( 194 void ShellBrowserContext::CancelMIDISysExPermissionRequest(
196 int render_process_id, 195 int render_process_id,
197 int render_view_id, 196 int render_view_id,
198 int bridge_id, 197 int bridge_id,
199 const GURL& requesting_frame) { 198 const GURL& requesting_frame) {
200 } 199 }
201 200
202 net::URLRequestContextGetter* 201 net::URLRequestContextGetter*
(...skipping 11 matching lines...) Expand all
214 GeolocationPermissionContext* 213 GeolocationPermissionContext*
215 ShellBrowserContext::GetGeolocationPermissionContext() { 214 ShellBrowserContext::GetGeolocationPermissionContext() {
216 return NULL; 215 return NULL;
217 } 216 }
218 217
219 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 218 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
220 return NULL; 219 return NULL;
221 } 220 }
222 221
223 } // namespace content 222 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698