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

Side by Side Diff: chrome/test/base/testing_profile.cc

Issue 335993002: Convert MIDI permission requests to use WebContents in preparation for switching the code to using … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/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 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 return NULL; 751 return NULL;
752 } 752 }
753 753
754 net::URLRequestContextGetter* 754 net::URLRequestContextGetter*
755 TestingProfile::GetMediaRequestContextForStoragePartition( 755 TestingProfile::GetMediaRequestContextForStoragePartition(
756 const base::FilePath& partition_path, 756 const base::FilePath& partition_path,
757 bool in_memory) { 757 bool in_memory) {
758 return NULL; 758 return NULL;
759 } 759 }
760 760
761 void TestingProfile::RequestMidiSysExPermission(
762 int render_process_id,
763 int render_view_id,
764 int bridge_id,
765 const GURL& requesting_frame,
766 bool user_gesture,
767 const MidiSysExPermissionCallback& callback) {
768 // Always reject requests for testing.
769 callback.Run(false);
770 }
771
772 void TestingProfile::CancelMidiSysExPermissionRequest(
773 int render_process_id,
774 int render_view_id,
775 int bridge_id,
776 const GURL& requesting_frame) {
777 }
778
779 void TestingProfile::RequestProtectedMediaIdentifierPermission( 761 void TestingProfile::RequestProtectedMediaIdentifierPermission(
780 int render_process_id, 762 int render_process_id,
781 int render_view_id, 763 int render_view_id,
782 const GURL& origin, 764 const GURL& origin,
783 const ProtectedMediaIdentifierPermissionCallback& callback) { 765 const ProtectedMediaIdentifierPermissionCallback& callback) {
784 // Always reject requests for testing. 766 // Always reject requests for testing.
785 callback.Run(false); 767 callback.Run(false);
786 } 768 }
787 769
788 void TestingProfile::CancelProtectedMediaIdentifierPermissionRequests( 770 void TestingProfile::CancelProtectedMediaIdentifierPermissionRequests(
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 path_, 971 path_,
990 delegate_, 972 delegate_,
991 extension_policy_, 973 extension_policy_,
992 pref_service_.Pass(), 974 pref_service_.Pass(),
993 incognito_, 975 incognito_,
994 guest_session_, 976 guest_session_,
995 supervised_user_id_, 977 supervised_user_id_,
996 policy_service_.Pass(), 978 policy_service_.Pass(),
997 testing_factories_)); 979 testing_factories_));
998 } 980 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | content/browser/download/download_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698