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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 const base::FilePath& partition_path, | 176 const base::FilePath& partition_path, |
177 bool in_memory) { | 177 bool in_memory) { |
178 return GetRequestContext(); | 178 return GetRequestContext(); |
179 } | 179 } |
180 | 180 |
181 void ShellBrowserContext::RequestMidiSysExPermission( | 181 void ShellBrowserContext::RequestMidiSysExPermission( |
182 int render_process_id, | 182 int render_process_id, |
183 int render_view_id, | 183 int render_view_id, |
184 int bridge_id, | 184 int bridge_id, |
185 const GURL& requesting_frame, | 185 const GURL& requesting_frame, |
| 186 bool user_gesture, |
186 const MidiSysExPermissionCallback& callback) { | 187 const MidiSysExPermissionCallback& callback) { |
187 // Always reject requests for LayoutTests for now. | 188 // Always reject requests for LayoutTests for now. |
188 // TODO(toyoshim): Make it programmable to improve test coverage. | 189 // TODO(toyoshim): Make it programmable to improve test coverage. |
189 if (!CommandLine::ForCurrentProcess()->HasSwitch( | 190 if (!CommandLine::ForCurrentProcess()->HasSwitch( |
190 switches::kDumpRenderTree)) { | 191 switches::kDumpRenderTree)) { |
191 callback.Run(false); | 192 callback.Run(false); |
192 return; | 193 return; |
193 } | 194 } |
194 callback.Run(true); | 195 callback.Run(true); |
195 } | 196 } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 GeolocationPermissionContext* | 232 GeolocationPermissionContext* |
232 ShellBrowserContext::GetGeolocationPermissionContext() { | 233 ShellBrowserContext::GetGeolocationPermissionContext() { |
233 return NULL; | 234 return NULL; |
234 } | 235 } |
235 | 236 |
236 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 237 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
237 return NULL; | 238 return NULL; |
238 } | 239 } |
239 | 240 |
240 } // namespace content | 241 } // namespace content |
OLD | NEW |