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

Unified Diff: remoting/protocol/webrtc_audio_stream.h

Issue 2392963003: Add Audio support in Chromoting host when using WebRTC. (Closed)
Patch Set: . Created 4 years, 2 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 | « remoting/protocol/webrtc_audio_source_adapter_unittest.cc ('k') | remoting/protocol/webrtc_audio_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_audio_stream.h
diff --git a/remoting/protocol/webrtc_audio_stream.h b/remoting/protocol/webrtc_audio_stream.h
new file mode 100644
index 0000000000000000000000000000000000000000..6c5981a3aa44c045661037d50d24a4c45cadd1e2
--- /dev/null
+++ b/remoting/protocol/webrtc_audio_stream.h
@@ -0,0 +1,54 @@
+// Copyright 2016 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 REMOTING_PROTOCOL_WEBRTC_AUDIO_STREAM_H_
+#define REMOTING_PROTOCOL_WEBRTC_AUDIO_STREAM_H_
+
+#include <memory>
+
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "remoting/protocol/audio_stream.h"
+
+namespace base {
+class SingleThreadTaskRunner;
+} // namespace webrtc
+
+namespace webrtc {
+class MediaStreamInterface;
+class PeerConnectionInterface;
+} // namespace webrtc
+
+namespace remoting {
+namespace protocol {
+
+class AudioSource;
+class WebrtcAudioSourceAdapter;
+class WebrtcTransport;
+
+class WebrtcAudioStream : public AudioStream {
+ public:
+ WebrtcAudioStream();
+ ~WebrtcAudioStream() override;
+
+ void Start(scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner,
+ std::unique_ptr<AudioSource> audio_source,
+ WebrtcTransport* webrtc_transport);
+
+ // AudioStream interface.
+ void Pause(bool pause) override;
+
+ private:
+ scoped_refptr<WebrtcAudioSourceAdapter> source_adapter_;
+
+ scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_;
+ scoped_refptr<webrtc::MediaStreamInterface> stream_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebrtcAudioStream);
+};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_WEBRTC_AUDIO_STREAM_H_
« no previous file with comments | « remoting/protocol/webrtc_audio_source_adapter_unittest.cc ('k') | remoting/protocol/webrtc_audio_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698