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 callback.Run(false); | |
jam
2013/07/12 16:06:35
this means that someone running content_shell won'
Takashi Toyoshima
2013/07/12 16:37:30
Currently layout test assumes content_shell always
jam
2013/07/17 00:00:13
content_shell is used as both a small browser to t
| |
180 } | |
181 | |
173 net::URLRequestContextGetter* | 182 net::URLRequestContextGetter* |
174 ShellBrowserContext::CreateRequestContextForStoragePartition( | 183 ShellBrowserContext::CreateRequestContextForStoragePartition( |
175 const base::FilePath& partition_path, | 184 const base::FilePath& partition_path, |
176 bool in_memory, | 185 bool in_memory, |
177 ProtocolHandlerMap* protocol_handlers) { | 186 ProtocolHandlerMap* protocol_handlers) { |
178 return NULL; | 187 return NULL; |
179 } | 188 } |
180 | 189 |
181 ResourceContext* ShellBrowserContext::GetResourceContext() { | 190 ResourceContext* ShellBrowserContext::GetResourceContext() { |
182 return resource_context_.get(); | 191 return resource_context_.get(); |
183 } | 192 } |
184 | 193 |
185 GeolocationPermissionContext* | 194 GeolocationPermissionContext* |
186 ShellBrowserContext::GetGeolocationPermissionContext() { | 195 ShellBrowserContext::GetGeolocationPermissionContext() { |
187 return NULL; | 196 return NULL; |
188 } | 197 } |
189 | 198 |
190 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 199 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
191 return NULL; | 200 return NULL; |
192 } | 201 } |
193 | 202 |
194 } // namespace content | 203 } // namespace content |
OLD | NEW |