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

Side by Side Diff: chrome/browser/profiles/off_the_record_profile_impl.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 "chrome/browser/profiles/off_the_record_profile_impl.h" 5 #include "chrome/browser/profiles/off_the_record_profile_impl.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/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 } 293 }
294 294
295 net::URLRequestContextGetter* 295 net::URLRequestContextGetter*
296 OffTheRecordProfileImpl::GetMediaRequestContextForStoragePartition( 296 OffTheRecordProfileImpl::GetMediaRequestContextForStoragePartition(
297 const base::FilePath& partition_path, 297 const base::FilePath& partition_path,
298 bool in_memory) { 298 bool in_memory) {
299 return io_data_.GetIsolatedAppRequestContextGetter(partition_path, in_memory) 299 return io_data_.GetIsolatedAppRequestContextGetter(partition_path, in_memory)
300 .get(); 300 .get();
301 } 301 }
302 302
303 void OffTheRecordProfileImpl::RequestMIDISysExPermission( 303 void OffTheRecordProfileImpl::RequestMidiSysExPermission(
304 int render_process_id, 304 int render_process_id,
305 int render_view_id, 305 int render_view_id,
306 int bridge_id, 306 int bridge_id,
307 const GURL& requesting_frame, 307 const GURL& requesting_frame,
308 const MIDISysExPermissionCallback& callback) { 308 const MidiSysExPermissionCallback& callback) {
309 ChromeMIDIPermissionContext* context = 309 ChromeMidiPermissionContext* context =
310 ChromeMIDIPermissionContextFactory::GetForProfile(this); 310 ChromeMidiPermissionContextFactory::GetForProfile(this);
311 context->RequestMIDISysExPermission(render_process_id, 311 context->RequestMidiSysExPermission(render_process_id,
312 render_view_id, 312 render_view_id,
313 bridge_id, 313 bridge_id,
314 requesting_frame, 314 requesting_frame,
315 callback); 315 callback);
316 } 316 }
317 317
318 void OffTheRecordProfileImpl::CancelMIDISysExPermissionRequest( 318 void OffTheRecordProfileImpl::CancelMidiSysExPermissionRequest(
319 int render_process_id, 319 int render_process_id,
320 int render_view_id, 320 int render_view_id,
321 int bridge_id, 321 int bridge_id,
322 const GURL& requesting_frame) { 322 const GURL& requesting_frame) {
323 ChromeMIDIPermissionContext* context = 323 ChromeMidiPermissionContext* context =
324 ChromeMIDIPermissionContextFactory::GetForProfile(this); 324 ChromeMidiPermissionContextFactory::GetForProfile(this);
325 context->CancelMIDISysExPermissionRequest( 325 context->CancelMidiSysExPermissionRequest(
326 render_process_id, render_view_id, bridge_id, requesting_frame); 326 render_process_id, render_view_id, bridge_id, requesting_frame);
327 } 327 }
328 328
329 void OffTheRecordProfileImpl::RequestProtectedMediaIdentifierPermission( 329 void OffTheRecordProfileImpl::RequestProtectedMediaIdentifierPermission(
330 int render_process_id, 330 int render_process_id,
331 int render_view_id, 331 int render_view_id,
332 int bridge_id, 332 int bridge_id,
333 int group_id, 333 int group_id,
334 const GURL& requesting_frame, 334 const GURL& requesting_frame,
335 const ProtectedMediaIdentifierPermissionCallback& callback) { 335 const ProtectedMediaIdentifierPermissionCallback& callback) {
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { 542 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() {
543 #if defined(OS_CHROMEOS) 543 #if defined(OS_CHROMEOS)
544 if (chromeos::ProfileHelper::IsSigninProfile(this)) { 544 if (chromeos::ProfileHelper::IsSigninProfile(this)) {
545 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( 545 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
546 g_browser_process->local_state()); 546 g_browser_process->local_state());
547 } 547 }
548 #endif // defined(OS_CHROMEOS) 548 #endif // defined(OS_CHROMEOS)
549 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( 549 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile(
550 GetPrefs(), g_browser_process->local_state()); 550 GetPrefs(), g_browser_process->local_state());
551 } 551 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.h ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698