Chromium Code Reviews| Index: remoting/protocol/protobuf_audio_writer.h |
| diff --git a/remoting/protocol/protobuf_video_writer.h b/remoting/protocol/protobuf_audio_writer.h |
| similarity index 61% |
| copy from remoting/protocol/protobuf_video_writer.h |
| copy to remoting/protocol/protobuf_audio_writer.h |
| index c5fa3213a76d0f64466b4c48ab9ac4628d37f551..ae62d598dba87e97b61a8f107a5d2723fcb5301d 100644 |
| --- a/remoting/protocol/protobuf_video_writer.h |
| +++ b/remoting/protocol/protobuf_audio_writer.h |
| @@ -2,16 +2,16 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ |
| -#define REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ |
| +#ifndef REMOTING_PROTOCOL_PROTOBUF_AUDIO_WRITER_H_ |
| +#define REMOTING_PROTOCOL_PROTOBUF_AUDIO_WRITER_H_ |
| #include <string> |
| +#include "base/basictypes.h" |
| #include "base/compiler_specific.h" |
| -#include "base/memory/ref_counted.h" |
| #include "base/memory/scoped_ptr.h" |
| +#include "remoting/protocol/audio_writer.h" |
| #include "remoting/protocol/buffered_socket_writer.h" |
| -#include "remoting/protocol/video_writer.h" |
| namespace net { |
| class StreamSocket; |
| @@ -22,21 +22,20 @@ namespace protocol { |
| class Session; |
| -class ProtobufVideoWriter : public VideoWriter { |
| +class ProtobufAudioWriter : public AudioWriter { |
| public: |
| - ProtobufVideoWriter(); |
| - virtual ~ProtobufVideoWriter(); |
| + ProtobufAudioWriter(); |
| + virtual ~ProtobufAudioWriter(); |
| - // VideoWriter interface. |
| + // AudioWriter interface. |
| virtual void Init(protocol::Session* session, |
| const InitializedCallback& callback) OVERRIDE; |
| virtual void Close() OVERRIDE; |
| virtual bool is_connected() OVERRIDE; |
| - // VideoStub interface. |
| - virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, |
| + // AudioStub interface. |
| + virtual void ProcessAudioPacket(scoped_ptr<AudioPacket> packet, |
| const base::Closure& done) OVERRIDE; |
| - virtual int GetPendingPackets() OVERRIDE; |
| private: |
| void OnChannelReady(scoped_ptr<net::StreamSocket> socket); |
| @@ -45,15 +44,15 @@ class ProtobufVideoWriter : public VideoWriter { |
| InitializedCallback initialized_callback_; |
| - // TODO(sergeyu): Remove |channel_| and let |buffered_writer_| own it. |
| + // TODO(kxing): Remove |channel_| and let |buffered_writer_| own it. |
|
garykac
2012/06/14 17:50:02
Can you create a bug for this and then do it (for
Sergey Ulanov
2012/06/14 17:53:17
Here and in all other places - don't change the na
kxing
2012/06/14 22:30:42
Done.
kxing
2012/06/14 22:30:42
Done.
|
| scoped_ptr<net::StreamSocket> channel_; |
| BufferedSocketWriter buffered_writer_; |
| - DISALLOW_COPY_AND_ASSIGN(ProtobufVideoWriter); |
| + DISALLOW_COPY_AND_ASSIGN(ProtobufAudioWriter); |
| }; |
| } // namespace protocol |
| } // namespace remoting |
| -#endif // REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ |
| +#endif // REMOTING_PROTOCOL_PROTOBUF_AUDIO_WRITER_H_ |