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

Side by Side Diff: remoting/protocol/socket_reader_base.h

Issue 8824006: Migrate net/socket/socket.h, net/socket/stream_socket.h to base::Bind(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_PROTOCOL_SOCKET_READER_BASE_H_ 5 #ifndef REMOTING_PROTOCOL_SOCKET_READER_BASE_H_
6 #define REMOTING_PROTOCOL_SOCKET_READER_BASE_H_ 6 #define REMOTING_PROTOCOL_SOCKET_READER_BASE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "net/base/completion_callback.h" 9 #include "net/base/completion_callback.h"
10 10
(...skipping 14 matching lines...) Expand all
25 virtual void OnDataReceived(net::IOBuffer* buffer, int data_size) = 0; 25 virtual void OnDataReceived(net::IOBuffer* buffer, int data_size) = 0;
26 26
27 private: 27 private:
28 void DoRead(); 28 void DoRead();
29 void OnRead(int result); 29 void OnRead(int result);
30 void HandleReadResult(int result); 30 void HandleReadResult(int result);
31 31
32 net::Socket* socket_; 32 net::Socket* socket_;
33 bool closed_; 33 bool closed_;
34 scoped_refptr<net::IOBuffer> read_buffer_; 34 scoped_refptr<net::IOBuffer> read_buffer_;
35 net::OldCompletionCallbackImpl<SocketReaderBase> read_callback_;
36 }; 35 };
37 36
38 } // namespace remoting 37 } // namespace remoting
39 38
40 #endif // REMOTING_PROTOCOL_SOCKET_READER_BASE_H_ 39 #endif // REMOTING_PROTOCOL_SOCKET_READER_BASE_H_
OLDNEW
« no previous file with comments | « remoting/protocol/pepper_transport_socket_adapter.cc ('k') | remoting/protocol/socket_reader_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698