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

Unified Diff: remoting/protocol/stream_writer.cc

Issue 5575005: Removed stream_writer.[cc|h] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/remoting
Patch Set: Created 10 years 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/stream_writer.h ('k') | remoting/remoting.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/stream_writer.cc
diff --git a/remoting/protocol/stream_writer.cc b/remoting/protocol/stream_writer.cc
deleted file mode 100644
index 4ceb1c4d5740362cabfad03c64f45f0b0186f8af..0000000000000000000000000000000000000000
--- a/remoting/protocol/stream_writer.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2010 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.
-
-#include "remoting/protocol/stream_writer.h"
-
-#include "base/message_loop.h"
-#include "remoting/protocol/buffered_socket_writer.h"
-#include "remoting/protocol/util.h"
-
-namespace remoting {
-namespace protocol {
-
-StreamWriterBase::StreamWriterBase()
- : socket_(NULL),
- buffered_writer_(new BufferedSocketWriter()) {
-}
-
-StreamWriterBase::~StreamWriterBase() { }
-
-void StreamWriterBase::Init(net::Socket* socket) {
- socket_ = socket;
- buffered_writer_->Init(socket, NULL);
-}
-
-int StreamWriterBase::GetBufferSize() {
- return buffered_writer_->GetBufferSize();
-}
-
-int StreamWriterBase::GetPendingMessages() {
- return buffered_writer_->GetBufferChunks();
-}
-
-void StreamWriterBase::Close() {
- buffered_writer_->Close();
-}
-
-bool EventStreamWriter::SendMessage(const EventMessage& message) {
- return buffered_writer_->Write(SerializeAndFrameMessage(message));
-}
-
-bool ControlStreamWriter::SendMessage(const ControlMessage& message) {
- return buffered_writer_->Write(SerializeAndFrameMessage(message));
-}
-
-} // namespace protocol
-} // namespace remoting
« no previous file with comments | « remoting/protocol/stream_writer.h ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698