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

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

Issue 185863003: [Media] Add user gesture reporting for API calls to midi and media streams. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try 2 Created 6 years, 9 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 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 int bridge_id,
183 const GURL& requesting_frame, 183 const GURL& requesting_frame,
184 bool user_gesture,
184 const MidiSysExPermissionCallback& callback) { 185 const MidiSysExPermissionCallback& callback) {
185 // Always reject requests for LayoutTests for now. 186 // Always reject requests for LayoutTests for now.
186 // TODO(toyoshim): Make it programmable to improve test coverage. 187 // TODO(toyoshim): Make it programmable to improve test coverage.
187 if (!CommandLine::ForCurrentProcess()->HasSwitch( 188 if (!CommandLine::ForCurrentProcess()->HasSwitch(
188 switches::kDumpRenderTree)) { 189 switches::kDumpRenderTree)) {
189 callback.Run(false); 190 callback.Run(false);
190 return; 191 return;
191 } 192 }
192 callback.Run(true); 193 callback.Run(true);
193 } 194 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 GeolocationPermissionContext* 229 GeolocationPermissionContext*
229 ShellBrowserContext::GetGeolocationPermissionContext() { 230 ShellBrowserContext::GetGeolocationPermissionContext() {
230 return NULL; 231 return NULL;
231 } 232 }
232 233
233 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 234 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
234 return NULL; 235 return NULL;
235 } 236 }
236 237
237 } // namespace content 238 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698