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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 return GetRequestContext(); | 169 return GetRequestContext(); |
170 } | 170 } |
171 | 171 |
172 net::URLRequestContextGetter* | 172 net::URLRequestContextGetter* |
173 ShellBrowserContext::GetMediaRequestContextForStoragePartition( | 173 ShellBrowserContext::GetMediaRequestContextForStoragePartition( |
174 const base::FilePath& partition_path, | 174 const base::FilePath& partition_path, |
175 bool in_memory) { | 175 bool in_memory) { |
176 return GetRequestContext(); | 176 return GetRequestContext(); |
177 } | 177 } |
178 | 178 |
179 void ShellBrowserContext::RequestMIDISysExPermission( | 179 void ShellBrowserContext::RequestMidiSysExPermission( |
180 int render_process_id, | 180 int render_process_id, |
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( |
| 188 switches::kDumpRenderTree)) { |
188 callback.Run(false); | 189 callback.Run(false); |
189 return; | 190 return; |
190 } | 191 } |
191 callback.Run(true); | 192 callback.Run(true); |
192 } | 193 } |
193 | 194 |
194 void ShellBrowserContext::CancelMIDISysExPermissionRequest( | 195 void ShellBrowserContext::CancelMidiSysExPermissionRequest( |
195 int render_process_id, | 196 int render_process_id, |
196 int render_view_id, | 197 int render_view_id, |
197 int bridge_id, | 198 int bridge_id, |
198 const GURL& requesting_frame) { | 199 const GURL& requesting_frame) { |
199 } | 200 } |
200 | 201 |
201 void ShellBrowserContext::RequestProtectedMediaIdentifierPermission( | 202 void ShellBrowserContext::RequestProtectedMediaIdentifierPermission( |
202 int render_process_id, | 203 int render_process_id, |
203 int render_view_id, | 204 int render_view_id, |
204 int bridge_id, | 205 int bridge_id, |
(...skipping 22 matching lines...) Expand all Loading... |
227 GeolocationPermissionContext* | 228 GeolocationPermissionContext* |
228 ShellBrowserContext::GetGeolocationPermissionContext() { | 229 ShellBrowserContext::GetGeolocationPermissionContext() { |
229 return NULL; | 230 return NULL; |
230 } | 231 } |
231 | 232 |
232 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 233 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
233 return NULL; | 234 return NULL; |
234 } | 235 } |
235 | 236 |
236 } // namespace content | 237 } // namespace content |
OLD | NEW |