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

Side by Side Diff: content/shell/browser/shell_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
« no previous file with comments | « content/shell/browser/shell_browser_context.h ('k') | ipc/ipc_message_start.h » ('j') | 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 return GetRequestContext(); 169 return GetRequestContext();
170 } 170 }
171 171
172 net::URLRequestContextGetter* 172 net::URLRequestContextGetter*
173 ShellBrowserContext::GetMediaRequestContextForStoragePartition( 173 ShellBrowserContext::GetMediaRequestContextForStoragePartition(
174 const base::FilePath& partition_path, 174 const base::FilePath& partition_path,
175 bool in_memory) { 175 bool in_memory) {
176 return GetRequestContext(); 176 return GetRequestContext();
177 } 177 }
178 178
179 void ShellBrowserContext::RequestMIDISysExPermission( 179 void ShellBrowserContext::RequestMidiSysExPermission(
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 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(
188 switches::kDumpRenderTree)) {
188 callback.Run(false); 189 callback.Run(false);
189 return; 190 return;
190 } 191 }
191 callback.Run(true); 192 callback.Run(true);
192 } 193 }
193 194
194 void ShellBrowserContext::CancelMIDISysExPermissionRequest( 195 void ShellBrowserContext::CancelMidiSysExPermissionRequest(
195 int render_process_id, 196 int render_process_id,
196 int render_view_id, 197 int render_view_id,
197 int bridge_id, 198 int bridge_id,
198 const GURL& requesting_frame) { 199 const GURL& requesting_frame) {
199 } 200 }
200 201
201 void ShellBrowserContext::RequestProtectedMediaIdentifierPermission( 202 void ShellBrowserContext::RequestProtectedMediaIdentifierPermission(
202 int render_process_id, 203 int render_process_id,
203 int render_view_id, 204 int render_view_id,
204 int bridge_id, 205 int bridge_id,
(...skipping 22 matching lines...) Expand all
227 GeolocationPermissionContext* 228 GeolocationPermissionContext*
228 ShellBrowserContext::GetGeolocationPermissionContext() { 229 ShellBrowserContext::GetGeolocationPermissionContext() {
229 return NULL; 230 return NULL;
230 } 231 }
231 232
232 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 233 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
233 return NULL; 234 return NULL;
234 } 235 }
235 236
236 } // namespace content 237 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_browser_context.h ('k') | ipc/ipc_message_start.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698