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 "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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( | 101 void TestBrowserContext::RequestMidiSysExPermission( |
102 int render_process_id, | 102 int render_process_id, |
103 int render_view_id, | 103 int render_view_id, |
104 int bridge_id, | 104 int bridge_id, |
105 const GURL& requesting_frame, | 105 const GURL& requesting_frame, |
| 106 bool user_gesture, |
106 const MidiSysExPermissionCallback& callback) { | 107 const MidiSysExPermissionCallback& callback) { |
107 // Always reject requests for testing. | 108 // Always reject requests for testing. |
108 callback.Run(false); | 109 callback.Run(false); |
109 } | 110 } |
110 | 111 |
111 void TestBrowserContext::CancelMidiSysExPermissionRequest( | 112 void TestBrowserContext::CancelMidiSysExPermissionRequest( |
112 int render_process_id, | 113 int render_process_id, |
113 int render_view_id, | 114 int render_view_id, |
114 int bridge_id, | 115 int bridge_id, |
115 const GURL& requesting_frame) { | 116 const GURL& requesting_frame) { |
(...skipping 24 matching lines...) Expand all Loading... |
140 GeolocationPermissionContext* | 141 GeolocationPermissionContext* |
141 TestBrowserContext::GetGeolocationPermissionContext() { | 142 TestBrowserContext::GetGeolocationPermissionContext() { |
142 return NULL; | 143 return NULL; |
143 } | 144 } |
144 | 145 |
145 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { | 146 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { |
146 return special_storage_policy_.get(); | 147 return special_storage_policy_.get(); |
147 } | 148 } |
148 | 149 |
149 } // namespace content | 150 } // namespace content |
OLD | NEW |