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

Unified Diff: remoting/protocol/socket_reader_base.h

Issue 11361197: Rename SocketReaderBase to SocketReader and move it to remoting/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/socket_reader_base.h
diff --git a/remoting/protocol/socket_reader_base.h b/remoting/protocol/socket_reader_base.h
deleted file mode 100644
index 3877f13dbf0ab3a9de7f09b74ba1c0a10430cd56..0000000000000000000000000000000000000000
--- a/remoting/protocol/socket_reader_base.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2011 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_SOCKET_READER_BASE_H_
-#define REMOTING_PROTOCOL_SOCKET_READER_BASE_H_
-
-#include "base/memory/ref_counted.h"
-#include "net/base/completion_callback.h"
-
-namespace net {
-class IOBuffer;
-class Socket;
-} // namespace net
-
-namespace remoting {
-
-class SocketReaderBase {
- public:
- SocketReaderBase();
- virtual ~SocketReaderBase();
-
- protected:
- void Init(net::Socket* socket);
- virtual void OnDataReceived(net::IOBuffer* buffer, int data_size) = 0;
-
- private:
- void DoRead();
- void OnRead(int result);
- void HandleReadResult(int result);
-
- net::Socket* socket_;
- bool closed_;
- scoped_refptr<net::IOBuffer> read_buffer_;
-};
-
-} // namespace remoting
-
-#endif // REMOTING_PROTOCOL_SOCKET_READER_BASE_H_

Powered by Google App Engine
This is Rietveld 408576698