OLD | NEW |
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 28 matching lines...) Expand all Loading... |
39 } else if (name.find("back") != std::string::npos) { | 39 } else if (name.find("back") != std::string::npos) { |
40 video_facing = MEDIA_VIDEO_FACING_ENVIRONMENT; | 40 video_facing = MEDIA_VIDEO_FACING_ENVIRONMENT; |
41 } | 41 } |
42 #endif | 42 #endif |
43 } | 43 } |
44 | 44 |
45 MediaStreamDevice::MediaStreamDevice( | 45 MediaStreamDevice::MediaStreamDevice( |
46 MediaStreamType type, | 46 MediaStreamType type, |
47 const std::string& id, | 47 const std::string& id, |
48 const std::string& name, | 48 const std::string& name, |
| 49 const GURL& security_origin) |
| 50 : type(type), |
| 51 id(id), |
| 52 video_facing(MEDIA_VIDEO_FACING_NONE), |
| 53 name(name), |
| 54 security_origin(security_origin) { |
| 55 } |
| 56 |
| 57 MediaStreamDevice::MediaStreamDevice( |
| 58 MediaStreamType type, |
| 59 const std::string& id, |
| 60 const std::string& name, |
49 int sample_rate, | 61 int sample_rate, |
50 int channel_layout, | 62 int channel_layout, |
51 int frames_per_buffer) | 63 int frames_per_buffer) |
52 : type(type), | 64 : type(type), |
53 id(id), | 65 id(id), |
54 video_facing(MEDIA_VIDEO_FACING_NONE), | 66 video_facing(MEDIA_VIDEO_FACING_NONE), |
55 name(name), | 67 name(name), |
56 input(sample_rate, channel_layout, frames_per_buffer) { | 68 input(sample_rate, channel_layout, frames_per_buffer) { |
57 } | 69 } |
58 | 70 |
(...skipping 25 matching lines...) Expand all Loading... |
84 request_type(request_type), | 96 request_type(request_type), |
85 requested_audio_device_id(requested_audio_device_id), | 97 requested_audio_device_id(requested_audio_device_id), |
86 requested_video_device_id(requested_video_device_id), | 98 requested_video_device_id(requested_video_device_id), |
87 audio_type(audio_type), | 99 audio_type(audio_type), |
88 video_type(video_type) { | 100 video_type(video_type) { |
89 } | 101 } |
90 | 102 |
91 MediaStreamRequest::~MediaStreamRequest() {} | 103 MediaStreamRequest::~MediaStreamRequest() {} |
92 | 104 |
93 } // namespace content | 105 } // namespace content |
OLD | NEW |