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

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

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 #include "content/public/common/media_stream_request.h" 5 #include "content/public/common/media_stream_request.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 const std::string& device_id) const { 78 const std::string& device_id) const {
79 for (const_iterator iter = begin(); iter != end(); ++iter) { 79 for (const_iterator iter = begin(); iter != end(); ++iter) {
80 if (iter->id == device_id) 80 if (iter->id == device_id)
81 return &(*iter); 81 return &(*iter);
82 } 82 }
83 return NULL; 83 return NULL;
84 } 84 }
85 85
86 MediaStreamRequest::MediaStreamRequest( 86 MediaStreamRequest::MediaStreamRequest(
87 int render_process_id, 87 int render_process_id,
88 int render_view_id, 88 int render_frame_id,
89 int page_request_id, 89 int page_request_id,
90 const GURL& security_origin, 90 const GURL& security_origin,
91 bool user_gesture, 91 bool user_gesture,
92 MediaStreamRequestType request_type, 92 MediaStreamRequestType request_type,
93 const std::string& requested_audio_device_id, 93 const std::string& requested_audio_device_id,
94 const std::string& requested_video_device_id, 94 const std::string& requested_video_device_id,
95 MediaStreamType audio_type, 95 MediaStreamType audio_type,
96 MediaStreamType video_type) 96 MediaStreamType video_type)
97 : render_process_id(render_process_id), 97 : render_process_id(render_process_id),
98 render_view_id(render_view_id), 98 render_frame_id(render_frame_id),
99 page_request_id(page_request_id), 99 page_request_id(page_request_id),
100 security_origin(security_origin), 100 security_origin(security_origin),
101 user_gesture(user_gesture), 101 user_gesture(user_gesture),
102 request_type(request_type), 102 request_type(request_type),
103 requested_audio_device_id(requested_audio_device_id), 103 requested_audio_device_id(requested_audio_device_id),
104 requested_video_device_id(requested_video_device_id), 104 requested_video_device_id(requested_video_device_id),
105 audio_type(audio_type), 105 audio_type(audio_type),
106 video_type(video_type) { 106 video_type(video_type) {
107 } 107 }
108 108
109 MediaStreamRequest::~MediaStreamRequest() {} 109 MediaStreamRequest::~MediaStreamRequest() {}
110 110
111 } // namespace content 111 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/media_stream_request.h ('k') | content/public/renderer/render_frame_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698