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
3 // found in the LICENSE file.
4
5 #include "content/public/browser/media_stream_request.h"
6
7 namespace content {
8
MediaStreamRequest(int render_process_id,int render_frame_id,int page_request_id,const GURL & security_origin,bool user_gesture,blink::MediaStreamRequestType request_type,const std::string & requested_audio_device_id,const std::string & requested_video_device_id,blink::mojom::MediaStreamType audio_type,blink::mojom::MediaStreamType video_type,bool disable_local_echo)9 MediaStreamRequest::MediaStreamRequest(
10 int render_process_id,
11 int render_frame_id,
12 int page_request_id,
13 const GURL& security_origin,
14 bool user_gesture,
15 blink::MediaStreamRequestType request_type,
16 const std::string& requested_audio_device_id,
17 const std::string& requested_video_device_id,
18 blink::mojom::MediaStreamType audio_type,
19 blink::mojom::MediaStreamType video_type,
20 bool disable_local_echo)
21 : render_process_id(render_process_id),
22 render_frame_id(render_frame_id),
23 page_request_id(page_request_id),
24 security_origin(security_origin),
25 user_gesture(user_gesture),
26 request_type(request_type),
27 requested_audio_device_id(requested_audio_device_id),
28 requested_video_device_id(requested_video_device_id),
29 audio_type(audio_type),
30 video_type(video_type),
31 disable_local_echo(disable_local_echo),
32 all_ancestors_have_same_origin(false) {}
33
34 MediaStreamRequest::MediaStreamRequest(const MediaStreamRequest& other) =
35 default;
36
~MediaStreamRequest()37 MediaStreamRequest::~MediaStreamRequest() {}
38
39 } // namespace content
40