| Index: remoting/protocol/connection_to_client.h
|
| diff --git a/remoting/protocol/connection_to_client.h b/remoting/protocol/connection_to_client.h
|
| index f786e54de09a806cd30d525dd3f44dc841e216d6..77f4f7c69be57e79b11067abb6539707bcdcfadd 100644
|
| --- a/remoting/protocol/connection_to_client.h
|
| +++ b/remoting/protocol/connection_to_client.h
|
| @@ -12,6 +12,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/synchronization/lock.h"
|
| #include "base/threading/non_thread_safe.h"
|
| +#include "remoting/protocol/audio_writer.h"
|
| #include "remoting/protocol/session.h"
|
| #include "remoting/protocol/video_writer.h"
|
|
|
| @@ -83,6 +84,9 @@ class ConnectionToClient : public base::NonThreadSafe {
|
| // Send encoded update stream data to the viewer.
|
| virtual VideoStub* video_stub();
|
|
|
| + // Send audio stream data to the viewer.
|
| + virtual AudioStub* audio_stub();
|
| +
|
| // Send control data to the viewer/client.
|
| virtual ClientStub* client_stub();
|
|
|
| @@ -109,6 +113,9 @@ class ConnectionToClient : public base::NonThreadSafe {
|
| // Stops writing in the channels.
|
| void CloseChannels();
|
|
|
| + // Returns true when audio stream is present.
|
| + bool AudioEnabled();
|
| +
|
| // Event handler for handling events sent from this object.
|
| EventHandler* handler_;
|
|
|
| @@ -123,6 +130,7 @@ class ConnectionToClient : public base::NonThreadSafe {
|
| scoped_ptr<HostControlDispatcher> control_dispatcher_;
|
| scoped_ptr<HostEventDispatcher> event_dispatcher_;
|
| scoped_ptr<VideoWriter> video_writer_;
|
| + scoped_ptr<AudioWriter> audio_writer_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ConnectionToClient);
|
| };
|
|
|