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/test/base/testing_profile.h" | 5 #include "chrome/test/base/testing_profile.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 return NULL; | 717 return NULL; |
718 } | 718 } |
719 | 719 |
720 net::URLRequestContextGetter* | 720 net::URLRequestContextGetter* |
721 TestingProfile::GetMediaRequestContextForStoragePartition( | 721 TestingProfile::GetMediaRequestContextForStoragePartition( |
722 const base::FilePath& partition_path, | 722 const base::FilePath& partition_path, |
723 bool in_memory) { | 723 bool in_memory) { |
724 return NULL; | 724 return NULL; |
725 } | 725 } |
726 | 726 |
727 void TestingProfile::RequestMIDISysExPermission( | 727 void TestingProfile::RequestMidiSysExPermission( |
728 int render_process_id, | 728 int render_process_id, |
729 int render_view_id, | 729 int render_view_id, |
730 int bridge_id, | 730 int bridge_id, |
731 const GURL& requesting_frame, | 731 const GURL& requesting_frame, |
732 const MIDISysExPermissionCallback& callback) { | 732 const MidiSysExPermissionCallback& callback) { |
733 // Always reject requests for testing. | 733 // Always reject requests for testing. |
734 callback.Run(false); | 734 callback.Run(false); |
735 } | 735 } |
736 | 736 |
737 void TestingProfile::CancelMIDISysExPermissionRequest( | 737 void TestingProfile::CancelMidiSysExPermissionRequest( |
738 int render_process_id, | 738 int render_process_id, |
739 int render_view_id, | 739 int render_view_id, |
740 int bridge_id, | 740 int bridge_id, |
741 const GURL& requesting_frame) { | 741 const GURL& requesting_frame) { |
742 } | 742 } |
743 | 743 |
744 void TestingProfile::RequestProtectedMediaIdentifierPermission( | 744 void TestingProfile::RequestProtectedMediaIdentifierPermission( |
745 int render_process_id, | 745 int render_process_id, |
746 int render_view_id, | 746 int render_view_id, |
747 int bridge_id, | 747 int bridge_id, |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
946 path_, | 946 path_, |
947 delegate_, | 947 delegate_, |
948 extension_policy_, | 948 extension_policy_, |
949 pref_service_.Pass(), | 949 pref_service_.Pass(), |
950 incognito_, | 950 incognito_, |
951 guest_session_, | 951 guest_session_, |
952 managed_user_id_, | 952 managed_user_id_, |
953 policy_service_.Pass(), | 953 policy_service_.Pass(), |
954 testing_factories_)); | 954 testing_factories_)); |
955 } | 955 } |
OLD | NEW |