OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |