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

Side by Side Diff: content/public/browser/browser_context.h

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/common/media/midi_messages.h ('k') | content/public/common/media_stream_request.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 typedef base::Callback<void(bool)> MidiSysExPermissionCallback; 125 typedef base::Callback<void(bool)> MidiSysExPermissionCallback;
126 126
127 // Requests a permission to use system exclusive messages in MIDI events. 127 // Requests a permission to use system exclusive messages in MIDI events.
128 // |callback| will be invoked when the request is resolved. 128 // |callback| will be invoked when the request is resolved.
129 virtual void RequestMidiSysExPermission( 129 virtual void RequestMidiSysExPermission(
130 int render_process_id, 130 int render_process_id,
131 int render_view_id, 131 int render_view_id,
132 int bridge_id, 132 int bridge_id,
133 const GURL& requesting_frame, 133 const GURL& requesting_frame,
134 bool user_gesture,
134 const MidiSysExPermissionCallback& callback) = 0; 135 const MidiSysExPermissionCallback& callback) = 0;
135 136
136 // Cancels a pending MIDI permission request. 137 // Cancels a pending MIDI permission request.
137 virtual void CancelMidiSysExPermissionRequest( 138 virtual void CancelMidiSysExPermissionRequest(
138 int render_process_id, 139 int render_process_id,
139 int render_view_id, 140 int render_view_id,
140 int bridge_id, 141 int bridge_id,
141 const GURL& requesting_frame) = 0; 142 const GURL& requesting_frame) = 0;
142 143
143 typedef base::Callback<void(bool)> ProtectedMediaIdentifierPermissionCallback; 144 typedef base::Callback<void(bool)> ProtectedMediaIdentifierPermissionCallback;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 struct hash<content::BrowserContext*> { 182 struct hash<content::BrowserContext*> {
182 std::size_t operator()(content::BrowserContext* const& p) const { 183 std::size_t operator()(content::BrowserContext* const& p) const {
183 return reinterpret_cast<std::size_t>(p); 184 return reinterpret_cast<std::size_t>(p);
184 } 185 }
185 }; 186 };
186 187
187 } // namespace BASE_HASH_NAMESPACE 188 } // namespace BASE_HASH_NAMESPACE
188 #endif 189 #endif
189 190
190 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 191 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/common/media/midi_messages.h ('k') | content/public/common/media_stream_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698