Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1502)

Unified Diff: content/renderer/media/remote_media_stream_audio_track.h

Issue 965333002: Move RemoteMediaStreamAudioTrack to Separete Files Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/media/remote_media_stream_audio_track.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/remote_media_stream_audio_track.h
diff --git a/content/renderer/media/remote_media_stream_audio_track.h b/content/renderer/media/remote_media_stream_audio_track.h
new file mode 100644
index 0000000000000000000000000000000000000000..e9ce42b3da87a464d2db1200fd57d9bfd417e9e5
--- /dev/null
+++ b/content/renderer/media/remote_media_stream_audio_track.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_MEDIA_REMOTE_MEDIA_STREAM_AUDIO_TRACK_H_
+#define CONTENT_RENDERER_MEDIA_REMOTE_MEDIA_STREAM_AUDIO_TRACK_H_
+
+#include "base/memory/ref_counted.h"
+#include "base/single_thread_task_runner.h"
+#include "content/renderer/media/media_stream_track.h"
+
+namespace content {
+
+class RemoteMediaStreamAudioTrack : public MediaStreamTrack {
+ public:
+ RemoteMediaStreamAudioTrack(
+ const scoped_refptr<webrtc::AudioTrackInterface>& track,
+ const scoped_refptr<base::SingleThreadTaskRunner>& signaling_thread);
+
+ ~RemoteMediaStreamAudioTrack() override;
+
+ private:
+ void SetEnabled(bool enabled) override;
+
+ void Stop() override;
+
+ private:
+ const scoped_refptr<webrtc::AudioTrackInterface> track_;
+ const scoped_refptr<base::SingleThreadTaskRunner> signaling_thread_;
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_MEDIA_REMOTE_MEDIA_STREAM_AUDIO_TRACK_H_
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/media/remote_media_stream_audio_track.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698