OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2015 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 #ifndef CONTENT_RENDERER_MEDIA_REMOTE_MEDIA_STREAM_AUDIO_TRACK_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_REMOTE_MEDIA_STREAM_AUDIO_TRACK_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/single_thread_task_runner.h" |
| 10 #include "content/renderer/media/media_stream_track.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 class RemoteMediaStreamAudioTrack : public MediaStreamTrack { |
| 15 public: |
| 16 RemoteMediaStreamAudioTrack( |
| 17 const scoped_refptr<webrtc::AudioTrackInterface>& track, |
| 18 const scoped_refptr<base::SingleThreadTaskRunner>& signaling_thread); |
| 19 |
| 20 ~RemoteMediaStreamAudioTrack() override; |
| 21 |
| 22 private: |
| 23 void SetEnabled(bool enabled) override; |
| 24 |
| 25 void Stop() override; |
| 26 |
| 27 private: |
| 28 const scoped_refptr<webrtc::AudioTrackInterface> track_; |
| 29 const scoped_refptr<base::SingleThreadTaskRunner> signaling_thread_; |
| 30 }; |
| 31 |
| 32 } // namespace content |
| 33 |
| 34 #endif // CONTENT_RENDERER_MEDIA_REMOTE_MEDIA_STREAM_AUDIO_TRACK_H_ |
OLD | NEW |