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

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

Issue 38043004: Cancel MIDI permission request infobar on MIDIAccess stop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stub CancelMIDISysExPermissionRequest implementation for other files. Created 7 years, 2 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
« no previous file with comments | « content/shell/browser/shell_browser_context.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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);
192 } 193 }
193 194
195 void ShellBrowserContext::CancelMIDISysExPermissionRequest(
196 int render_process_id,
197 int render_view_id,
198 int bridge_id,
199 const GURL& requesting_frame) {
jochen (gone - plz use gerrit) 2013/10/25 11:37:09 why do you need this empty method here?
Kibeom Kim (inactive) 2013/10/28 09:43:18 Done. (Also moved other empty RequestMIDISysExPerm
200 }
201
194 net::URLRequestContextGetter* 202 net::URLRequestContextGetter*
195 ShellBrowserContext::CreateRequestContextForStoragePartition( 203 ShellBrowserContext::CreateRequestContextForStoragePartition(
196 const base::FilePath& partition_path, 204 const base::FilePath& partition_path,
197 bool in_memory, 205 bool in_memory,
198 ProtocolHandlerMap* protocol_handlers) { 206 ProtocolHandlerMap* protocol_handlers) {
199 return NULL; 207 return NULL;
200 } 208 }
201 209
202 ResourceContext* ShellBrowserContext::GetResourceContext() { 210 ResourceContext* ShellBrowserContext::GetResourceContext() {
203 return resource_context_.get(); 211 return resource_context_.get();
204 } 212 }
205 213
206 GeolocationPermissionContext* 214 GeolocationPermissionContext*
207 ShellBrowserContext::GetGeolocationPermissionContext() { 215 ShellBrowserContext::GetGeolocationPermissionContext() {
208 return NULL; 216 return NULL;
209 } 217 }
210 218
211 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 219 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
212 return NULL; 220 return NULL;
213 } 221 }
214 222
215 } // namespace content 223 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698