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

Side by Side Diff: content/public/test/test_browser_context.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 "content/public/test/test_browser_context.h" 5 #include "content/public/test/test_browser_context.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/test/null_task_runner.h" 8 #include "base/test/null_task_runner.h"
9 #include "content/public/test/mock_resource_context.h" 9 #include "content/public/test/mock_resource_context.h"
10 #include "net/url_request/url_request_context.h" 10 #include "net/url_request/url_request_context.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 return NULL; 91 return NULL;
92 } 92 }
93 93
94 net::URLRequestContextGetter* 94 net::URLRequestContextGetter*
95 TestBrowserContext::GetMediaRequestContextForStoragePartition( 95 TestBrowserContext::GetMediaRequestContextForStoragePartition(
96 const base::FilePath& partition_path, 96 const base::FilePath& partition_path,
97 bool in_memory) { 97 bool in_memory) {
98 return NULL; 98 return NULL;
99 } 99 }
100 100
101 void TestBrowserContext::RequestMidiSysExPermission(
102 int render_process_id,
103 int render_view_id,
104 int bridge_id,
105 const GURL& requesting_frame,
106 bool user_gesture,
107 const MidiSysExPermissionCallback& callback) {
108 // Always reject requests for testing.
109 callback.Run(false);
110 }
111
112 void TestBrowserContext::CancelMidiSysExPermissionRequest(
113 int render_process_id,
114 int render_view_id,
115 int bridge_id,
116 const GURL& requesting_frame) {
117 }
118
119 void TestBrowserContext::RequestProtectedMediaIdentifierPermission( 101 void TestBrowserContext::RequestProtectedMediaIdentifierPermission(
120 int render_process_id, 102 int render_process_id,
121 int render_view_id, 103 int render_view_id,
122 const GURL& origin, 104 const GURL& origin,
123 const ProtectedMediaIdentifierPermissionCallback& callback) { 105 const ProtectedMediaIdentifierPermissionCallback& callback) {
124 // Always reject requests for testing. 106 // Always reject requests for testing.
125 callback.Run(false); 107 callback.Run(false);
126 } 108 }
127 109
128 void TestBrowserContext::CancelProtectedMediaIdentifierPermissionRequests( 110 void TestBrowserContext::CancelProtectedMediaIdentifierPermissionRequests(
(...skipping 15 matching lines...) Expand all
144 126
145 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { 127 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() {
146 return special_storage_policy_.get(); 128 return special_storage_policy_.get();
147 } 129 }
148 130
149 PushMessagingService* TestBrowserContext::GetPushMessagingService() { 131 PushMessagingService* TestBrowserContext::GetPushMessagingService() {
150 return NULL; 132 return NULL;
151 } 133 }
152 134
153 } // namespace content 135 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/test_browser_context.h ('k') | content/shell/browser/shell_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698