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

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

Issue 795703003: Don't auto allow access to media devices unless a the security origin of the requester is the same … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix problem with that the ui_request_ was used for state updates. Created 5 years, 11 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
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 MediaStreamType video_type) 96 MediaStreamType video_type)
97 : render_process_id(render_process_id), 97 : render_process_id(render_process_id),
98 render_frame_id(render_frame_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 all_ancestors_have_same_origin(false) {
107 } 108 }
108 109
109 MediaStreamRequest::~MediaStreamRequest() {} 110 MediaStreamRequest::~MediaStreamRequest() {}
110 111
111 } // namespace content 112 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698