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

Side by Side Diff: chrome/browser/profiles/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
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/ui/app_list/test/fake_profile.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 (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/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 } 976 }
977 977
978 net::URLRequestContextGetter* 978 net::URLRequestContextGetter*
979 ProfileImpl::GetMediaRequestContextForStoragePartition( 979 ProfileImpl::GetMediaRequestContextForStoragePartition(
980 const base::FilePath& partition_path, 980 const base::FilePath& partition_path,
981 bool in_memory) { 981 bool in_memory) {
982 return io_data_ 982 return io_data_
983 .GetIsolatedMediaRequestContextGetter(partition_path, in_memory).get(); 983 .GetIsolatedMediaRequestContextGetter(partition_path, in_memory).get();
984 } 984 }
985 985
986 void ProfileImpl::RequestMIDISysExPermission( 986 void ProfileImpl::RequestMidiSysExPermission(
987 int render_process_id, 987 int render_process_id,
988 int render_view_id, 988 int render_view_id,
989 int bridge_id, 989 int bridge_id,
990 const GURL& requesting_frame, 990 const GURL& requesting_frame,
991 const MIDISysExPermissionCallback& callback) { 991 const MidiSysExPermissionCallback& callback) {
992 ChromeMIDIPermissionContext* context = 992 ChromeMidiPermissionContext* context =
993 ChromeMIDIPermissionContextFactory::GetForProfile(this); 993 ChromeMidiPermissionContextFactory::GetForProfile(this);
994 context->RequestMIDISysExPermission(render_process_id, 994 context->RequestMidiSysExPermission(render_process_id,
995 render_view_id, 995 render_view_id,
996 bridge_id, 996 bridge_id,
997 requesting_frame, 997 requesting_frame,
998 callback); 998 callback);
999 } 999 }
1000 1000
1001 void ProfileImpl::CancelMIDISysExPermissionRequest( 1001 void ProfileImpl::CancelMidiSysExPermissionRequest(
1002 int render_process_id, 1002 int render_process_id,
1003 int render_view_id, 1003 int render_view_id,
1004 int bridge_id, 1004 int bridge_id,
1005 const GURL& requesting_frame) { 1005 const GURL& requesting_frame) {
1006 ChromeMIDIPermissionContext* context = 1006 ChromeMidiPermissionContext* context =
1007 ChromeMIDIPermissionContextFactory::GetForProfile(this); 1007 ChromeMidiPermissionContextFactory::GetForProfile(this);
1008 context->CancelMIDISysExPermissionRequest( 1008 context->CancelMidiSysExPermissionRequest(
1009 render_process_id, render_view_id, bridge_id, requesting_frame); 1009 render_process_id, render_view_id, bridge_id, requesting_frame);
1010 } 1010 }
1011 1011
1012 void ProfileImpl::RequestProtectedMediaIdentifierPermission( 1012 void ProfileImpl::RequestProtectedMediaIdentifierPermission(
1013 int render_process_id, 1013 int render_process_id,
1014 int render_view_id, 1014 int render_view_id,
1015 int bridge_id, 1015 int bridge_id,
1016 int group_id, 1016 int group_id,
1017 const GURL& requesting_frame, 1017 const GURL& requesting_frame,
1018 const ProtectedMediaIdentifierPermissionCallback& callback) { 1018 const ProtectedMediaIdentifierPermissionCallback& callback) {
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 PrefProxyConfigTracker* ProfileImpl::CreateProxyConfigTracker() { 1346 PrefProxyConfigTracker* ProfileImpl::CreateProxyConfigTracker() {
1347 #if defined(OS_CHROMEOS) 1347 #if defined(OS_CHROMEOS)
1348 if (chromeos::ProfileHelper::IsSigninProfile(this)) { 1348 if (chromeos::ProfileHelper::IsSigninProfile(this)) {
1349 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( 1349 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
1350 g_browser_process->local_state()); 1350 g_browser_process->local_state());
1351 } 1351 }
1352 #endif // defined(OS_CHROMEOS) 1352 #endif // defined(OS_CHROMEOS)
1353 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( 1353 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile(
1354 GetPrefs(), g_browser_process->local_state()); 1354 GetPrefs(), g_browser_process->local_state());
1355 } 1355 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/ui/app_list/test/fake_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698