| 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/common/media/media_stream_options.h" | 5 #include "content/common/media/media_stream_options.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 const char kMediaStreamSourceTab[] = "tab"; | 11 const char kMediaStreamSourceTab[] = "tab"; |
| 12 const char kMediaStreamSourceScreen[] = "screen"; | 12 const char kMediaStreamSourceScreen[] = "screen"; |
| 13 const char kMediaStreamSourceDesktop[] = "desktop"; | 13 const char kMediaStreamSourceDesktop[] = "desktop"; |
| 14 const char kMediaStreamSourceSystem[] = "system"; | 14 const char kMediaStreamSourceSystem[] = "system"; |
| 15 | 15 |
| 16 TrackControls::TrackControls() | 16 TrackControls::TrackControls() |
| 17 : requested(false) {} | 17 : requested(false) {} |
| 18 | 18 |
| 19 TrackControls::TrackControls(bool request) | 19 TrackControls::TrackControls(bool request) |
| 20 : requested(request) {} | 20 : requested(request) {} |
| 21 | 21 |
| 22 TrackControls::TrackControls(const TrackControls& other) = default; | 22 TrackControls::TrackControls(const TrackControls& other) = default; |
| 23 | 23 |
| 24 TrackControls::~TrackControls() {} | 24 TrackControls::~TrackControls() {} |
| 25 | 25 |
| 26 StreamControls::StreamControls() | 26 StreamControls::StreamControls() |
| 27 : audio(false), | 27 : audio(false), |
| 28 video(false), | 28 video(false), |
| 29 hotword_enabled(false), | 29 hotword_enabled(false), |
| 30 disable_local_echo(false) {} | 30 disable_local_echo(false), |
| 31 video_kind(VIDEO_KIND_NO_CONSTRAINT) {} |
| 31 | 32 |
| 32 StreamControls::StreamControls(bool request_audio, bool request_video) | 33 StreamControls::StreamControls(bool request_audio, bool request_video) |
| 33 : audio(request_audio), | 34 : audio(request_audio), |
| 34 video(request_video), | 35 video(request_video), |
| 35 hotword_enabled(false), | 36 hotword_enabled(false), |
| 36 disable_local_echo(false) {} | 37 disable_local_echo(false), |
| 38 video_kind(VIDEO_KIND_NO_CONSTRAINT) {} |
| 37 | 39 |
| 38 StreamControls::~StreamControls() {} | 40 StreamControls::~StreamControls() {} |
| 39 | 41 |
| 40 // static | 42 // static |
| 41 const int StreamDeviceInfo::kNoId = -1; | 43 const int StreamDeviceInfo::kNoId = -1; |
| 42 | 44 |
| 43 StreamDeviceInfo::StreamDeviceInfo() | 45 StreamDeviceInfo::StreamDeviceInfo() |
| 44 : session_id(kNoId) {} | 46 : session_id(kNoId) {} |
| 45 | 47 |
| 46 StreamDeviceInfo::StreamDeviceInfo(MediaStreamType service_param, | 48 StreamDeviceInfo::StreamDeviceInfo(MediaStreamType service_param, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 63 session_id(kNoId) {} | 65 session_id(kNoId) {} |
| 64 | 66 |
| 65 // static | 67 // static |
| 66 bool StreamDeviceInfo::IsEqual(const StreamDeviceInfo& first, | 68 bool StreamDeviceInfo::IsEqual(const StreamDeviceInfo& first, |
| 67 const StreamDeviceInfo& second) { | 69 const StreamDeviceInfo& second) { |
| 68 return first.device.IsEqual(second.device) && | 70 return first.device.IsEqual(second.device) && |
| 69 first.session_id == second.session_id; | 71 first.session_id == second.session_id; |
| 70 } | 72 } |
| 71 | 73 |
| 72 } // namespace content | 74 } // namespace content |
| OLD | NEW |