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

Side by Side Diff: content/public/common/media_stream_request.h

Issue 364123002: [Cross-Site Isolation] Migrate entire MediaStream verticals to be per-RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: It's random enough. + REBASE Created 6 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 #ifndef CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_
6 #define CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ 6 #define CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // Represents a request for media streams (audio/video). 185 // Represents a request for media streams (audio/video).
186 // TODO(vrk): Decouple MediaStreamDevice from this header file so that 186 // TODO(vrk): Decouple MediaStreamDevice from this header file so that
187 // media_stream_options.h no longer depends on this file. 187 // media_stream_options.h no longer depends on this file.
188 // TODO(vrk,justinlin,wjia): Figure out a way to share this code cleanly between 188 // TODO(vrk,justinlin,wjia): Figure out a way to share this code cleanly between
189 // vanilla WebRTC, Tab Capture, and Pepper Video Capture. Right now there is 189 // vanilla WebRTC, Tab Capture, and Pepper Video Capture. Right now there is
190 // Tab-only stuff and Pepper-only stuff being passed around to all clients, 190 // Tab-only stuff and Pepper-only stuff being passed around to all clients,
191 // which is icky. 191 // which is icky.
192 struct CONTENT_EXPORT MediaStreamRequest { 192 struct CONTENT_EXPORT MediaStreamRequest {
193 MediaStreamRequest( 193 MediaStreamRequest(
194 int render_process_id, 194 int render_process_id,
195 int render_view_id, 195 int render_frame_id,
196 int page_request_id, 196 int page_request_id,
197 const GURL& security_origin, 197 const GURL& security_origin,
198 bool user_gesture, 198 bool user_gesture,
199 MediaStreamRequestType request_type, 199 MediaStreamRequestType request_type,
200 const std::string& requested_audio_device_id, 200 const std::string& requested_audio_device_id,
201 const std::string& requested_video_device_id, 201 const std::string& requested_video_device_id,
202 MediaStreamType audio_type, 202 MediaStreamType audio_type,
203 MediaStreamType video_type); 203 MediaStreamType video_type);
204 204
205 ~MediaStreamRequest(); 205 ~MediaStreamRequest();
206 206
207 // This is the render process id for the renderer associated with generating 207 // This is the render process id for the renderer associated with generating
208 // frames for a MediaStream. Any indicators associated with a capture will be 208 // frames for a MediaStream. Any indicators associated with a capture will be
209 // displayed for this renderer. 209 // displayed for this renderer.
210 int render_process_id; 210 int render_process_id;
211 211
212 // This is the render view id for the renderer associated with generating 212 // This is the render frame id for the renderer associated with generating
213 // frames for a MediaStream. Any indicators associated with a capture will be 213 // frames for a MediaStream. Any indicators associated with a capture will be
214 // displayed for this renderer. 214 // displayed for this renderer.
215 int render_view_id; 215 int render_frame_id;
216 216
217 // The unique id combined with render_process_id and render_view_id for 217 // The unique id combined with render_process_id and render_frame_id for
218 // identifying this request. This is used for cancelling request. 218 // identifying this request. This is used for cancelling request.
219 int page_request_id; 219 int page_request_id;
220 220
221 // Used by tab capture. 221 // Used by tab capture.
222 std::string tab_capture_device_id; 222 std::string tab_capture_device_id;
223 223
224 // The WebKit security origin for the current request (e.g. "html5rocks.com"). 224 // The WebKit security origin for the current request (e.g. "html5rocks.com").
225 GURL security_origin; 225 GURL security_origin;
226 226
227 // Set to true if the call was made in the context of a user gesture. 227 // Set to true if the call was made in the context of a user gesture.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 // Callback used return results of media access requests. 260 // Callback used return results of media access requests.
261 typedef base::Callback<void( 261 typedef base::Callback<void(
262 const MediaStreamDevices& devices, 262 const MediaStreamDevices& devices,
263 content::MediaStreamRequestResult result, 263 content::MediaStreamRequestResult result,
264 scoped_ptr<MediaStreamUI> ui)> MediaResponseCallback; 264 scoped_ptr<MediaStreamUI> ui)> MediaResponseCallback;
265 265
266 } // namespace content 266 } // namespace content
267 267
268 #endif // CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ 268 #endif // CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_
OLDNEW
« no previous file with comments | « content/public/browser/speech_recognition_session_context.cc ('k') | content/public/common/media_stream_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698