Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: content/shell/shell_browser_context.cc

Issue 18647002: Web MIDI: add RequestMIDISysExPermission to BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reduce arguments Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« content/public/browser/browser_context.h ('K') | « content/shell/shell_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698