| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 const GURL& requesting_frame, | 183 const GURL& requesting_frame, |
| 183 const MIDISysExPermissionCallback& callback) { | 184 const MIDISysExPermissionCallback& callback) { |
| 184 // Always reject requests for LayoutTests for now. | 185 // Always reject requests for LayoutTests for now. |
| 185 // TODO(toyoshim): Make it programmable to improve test coverage. | 186 // TODO(toyoshim): Make it programmable to improve test coverage. |
| 186 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) { | 187 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) { |
| 187 callback.Run(false); | 188 callback.Run(false); |
| 188 return; | 189 return; |
| 189 } | 190 } |
| 190 // TODO(toyoshim): Implement. http://crbug.com/257618 . | 191 // TODO(toyoshim): Implement. http://crbug.com/257618 . |
| 191 callback.Run(false); | 192 callback.Run(false); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 206 GeolocationPermissionContext* | 207 GeolocationPermissionContext* |
| 207 ShellBrowserContext::GetGeolocationPermissionContext() { | 208 ShellBrowserContext::GetGeolocationPermissionContext() { |
| 208 return NULL; | 209 return NULL; |
| 209 } | 210 } |
| 210 | 211 |
| 211 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 212 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
| 212 return NULL; | 213 return NULL; |
| 213 } | 214 } |
| 214 | 215 |
| 215 } // namespace content | 216 } // namespace content |
| OLD | NEW |