OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/shell/browser/shell_browser_context.h" | 5 #include "content/shell/browser/shell_browser_context.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/environment.h" | 9 #include "base/environment.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 int render_view_id, | 181 int render_view_id, |
182 int bridge_id, | 182 int bridge_id, |
183 const GURL& requesting_frame, | 183 const GURL& requesting_frame, |
184 const MIDISysExPermissionCallback& callback) { | 184 const MIDISysExPermissionCallback& callback) { |
185 // Always reject requests for LayoutTests for now. | 185 // Always reject requests for LayoutTests for now. |
186 // TODO(toyoshim): Make it programmable to improve test coverage. | 186 // TODO(toyoshim): Make it programmable to improve test coverage. |
187 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) { | 187 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) { |
188 callback.Run(false); | 188 callback.Run(false); |
189 return; | 189 return; |
190 } | 190 } |
191 // TODO(toyoshim): Implement. http://crbug.com/257618 . | 191 callback.Run(true); |
192 callback.Run(false); | |
193 } | 192 } |
194 | 193 |
195 void ShellBrowserContext::CancelMIDISysExPermissionRequest( | 194 void ShellBrowserContext::CancelMIDISysExPermissionRequest( |
196 int render_process_id, | 195 int render_process_id, |
197 int render_view_id, | 196 int render_view_id, |
198 int bridge_id, | 197 int bridge_id, |
199 const GURL& requesting_frame) { | 198 const GURL& requesting_frame) { |
200 } | 199 } |
201 | 200 |
202 net::URLRequestContextGetter* | 201 net::URLRequestContextGetter* |
(...skipping 11 matching lines...) Expand all Loading... |
214 GeolocationPermissionContext* | 213 GeolocationPermissionContext* |
215 ShellBrowserContext::GetGeolocationPermissionContext() { | 214 ShellBrowserContext::GetGeolocationPermissionContext() { |
216 return NULL; | 215 return NULL; |
217 } | 216 } |
218 | 217 |
219 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 218 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
220 return NULL; | 219 return NULL; |
221 } | 220 } |
222 | 221 |
223 } // namespace content | 222 } // namespace content |
OLD | NEW |