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

Unified Diff: remoting/protocol/protobuf_audio_writer.h

Issue 10535153: Added files for audio writers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed a small style issue Created 8 years, 6 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
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_

Powered by Google App Engine
This is Rietveld 408576698