| 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 kMediaStreamSource[] = "chromeMediaSource"; | |
| 12 const char kMediaStreamSourceId[] = "chromeMediaSourceId"; | |
| 13 const char kMediaStreamSourceInfoId[] = "sourceId"; | |
| 14 const char kMediaStreamSourceTab[] = "tab"; | 11 const char kMediaStreamSourceTab[] = "tab"; |
| 15 const char kMediaStreamSourceScreen[] = "screen"; | 12 const char kMediaStreamSourceScreen[] = "screen"; |
| 16 const char kMediaStreamSourceDesktop[] = "desktop"; | 13 const char kMediaStreamSourceDesktop[] = "desktop"; |
| 17 const char kMediaStreamSourceSystem[] = "system"; | 14 const char kMediaStreamSourceSystem[] = "system"; |
| 18 const char kMediaStreamRenderToAssociatedSink[] = | |
| 19 "chromeRenderToAssociatedSink"; | |
| 20 // The prefix of this constant is 'goog' to match with other getUserMedia | |
| 21 // constraints for audio. | |
| 22 const char kMediaStreamAudioHotword[] = "googHotword"; | |
| 23 | 15 |
| 24 TrackControls::TrackControls() | 16 TrackControls::TrackControls() |
| 25 : requested(false) {} | 17 : requested(false) {} |
| 26 | 18 |
| 27 TrackControls::TrackControls(bool request) | 19 TrackControls::TrackControls(bool request) |
| 28 : requested(request) {} | 20 : requested(request) {} |
| 29 | 21 |
| 30 TrackControls::TrackControls(const TrackControls& other) = default; | 22 TrackControls::TrackControls(const TrackControls& other) = default; |
| 31 | 23 |
| 32 TrackControls::~TrackControls() {} | 24 TrackControls::~TrackControls() {} |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 } | 56 } |
| 65 | 57 |
| 66 // static | 58 // static |
| 67 bool StreamDeviceInfo::IsEqual(const StreamDeviceInfo& first, | 59 bool StreamDeviceInfo::IsEqual(const StreamDeviceInfo& first, |
| 68 const StreamDeviceInfo& second) { | 60 const StreamDeviceInfo& second) { |
| 69 return first.device.IsEqual(second.device) && | 61 return first.device.IsEqual(second.device) && |
| 70 first.session_id == second.session_id; | 62 first.session_id == second.session_id; |
| 71 } | 63 } |
| 72 | 64 |
| 73 } // namespace content | 65 } // namespace content |
| OLD | NEW |