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

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: Fix test merge Created 6 years, 8 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
« 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 const base::FilePath& partition_path, 176 const base::FilePath& partition_path,
177 bool in_memory) { 177 bool in_memory) {
178 return GetRequestContext(); 178 return GetRequestContext();
179 } 179 }
180 180
181 void ShellBrowserContext::RequestMidiSysExPermission( 181 void ShellBrowserContext::RequestMidiSysExPermission(
182 int render_process_id, 182 int render_process_id,
183 int render_view_id, 183 int render_view_id,
184 int bridge_id, 184 int bridge_id,
185 const GURL& requesting_frame, 185 const GURL& requesting_frame,
186 bool user_gesture,
186 const MidiSysExPermissionCallback& callback) { 187 const MidiSysExPermissionCallback& callback) {
187 // Always reject requests for LayoutTests for now. 188 // Always reject requests for LayoutTests for now.
188 // TODO(toyoshim): Make it programmable to improve test coverage. 189 // TODO(toyoshim): Make it programmable to improve test coverage.
189 if (!CommandLine::ForCurrentProcess()->HasSwitch( 190 if (!CommandLine::ForCurrentProcess()->HasSwitch(
190 switches::kDumpRenderTree)) { 191 switches::kDumpRenderTree)) {
191 callback.Run(false); 192 callback.Run(false);
192 return; 193 return;
193 } 194 }
194 callback.Run(true); 195 callback.Run(true);
195 } 196 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 GeolocationPermissionContext* 232 GeolocationPermissionContext*
232 ShellBrowserContext::GetGeolocationPermissionContext() { 233 ShellBrowserContext::GetGeolocationPermissionContext() {
233 return NULL; 234 return NULL;
234 } 235 }
235 236
236 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 237 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
237 return NULL; 238 return NULL;
238 } 239 }
239 240
240 } // namespace content 241 } // 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