| 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/shell/shell_browser_context.h" | 5 #include "content/shell/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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 return GetRequestContext(); | 163 return GetRequestContext(); |
| 164 } | 164 } |
| 165 | 165 |
| 166 net::URLRequestContextGetter* | 166 net::URLRequestContextGetter* |
| 167 ShellBrowserContext::GetMediaRequestContextForStoragePartition( | 167 ShellBrowserContext::GetMediaRequestContextForStoragePartition( |
| 168 const base::FilePath& partition_path, | 168 const base::FilePath& partition_path, |
| 169 bool in_memory) { | 169 bool in_memory) { |
| 170 return GetRequestContext(); | 170 return GetRequestContext(); |
| 171 } | 171 } |
| 172 | 172 |
| 173 void ShellBrowserContext::RequestMIDISysExPermission( |
| 174 int render_process_id, |
| 175 int render_view_id, |
| 176 const GURL& requesting_frame, |
| 177 const MIDISysExPermissionCallback& callback) { |
| 178 // Always reject requests for testing. |
| 179 // TODO(toyoshim): Make it programmable to improve test coverage. |
| 180 callback.Run(false); |
| 181 } |
| 182 |
| 173 net::URLRequestContextGetter* | 183 net::URLRequestContextGetter* |
| 174 ShellBrowserContext::CreateRequestContextForStoragePartition( | 184 ShellBrowserContext::CreateRequestContextForStoragePartition( |
| 175 const base::FilePath& partition_path, | 185 const base::FilePath& partition_path, |
| 176 bool in_memory, | 186 bool in_memory, |
| 177 ProtocolHandlerMap* protocol_handlers) { | 187 ProtocolHandlerMap* protocol_handlers) { |
| 178 return NULL; | 188 return NULL; |
| 179 } | 189 } |
| 180 | 190 |
| 181 ResourceContext* ShellBrowserContext::GetResourceContext() { | 191 ResourceContext* ShellBrowserContext::GetResourceContext() { |
| 182 return resource_context_.get(); | 192 return resource_context_.get(); |
| 183 } | 193 } |
| 184 | 194 |
| 185 GeolocationPermissionContext* | 195 GeolocationPermissionContext* |
| 186 ShellBrowserContext::GetGeolocationPermissionContext() { | 196 ShellBrowserContext::GetGeolocationPermissionContext() { |
| 187 return NULL; | 197 return NULL; |
| 188 } | 198 } |
| 189 | 199 |
| 190 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 200 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
| 191 return NULL; | 201 return NULL; |
| 192 } | 202 } |
| 193 | 203 |
| 194 } // namespace content | 204 } // namespace content |
| OLD | NEW |