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

Side by Side Diff: net/curvecp/curvecp_client_socket.h

Issue 8801005: base::Bind: Convert Socket::Read. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. 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 NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ 5 #ifndef NET_CURVECP_CURVECP_CLIENT_SOCKET_H_
6 #define NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ 6 #define NET_CURVECP_CURVECP_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
(...skipping 23 matching lines...) Expand all
34 virtual int GetPeerAddress(AddressList* address) const OVERRIDE; 34 virtual int GetPeerAddress(AddressList* address) const OVERRIDE;
35 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 35 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
36 virtual const BoundNetLog& NetLog() const OVERRIDE; 36 virtual const BoundNetLog& NetLog() const OVERRIDE;
37 virtual void SetSubresourceSpeculation() OVERRIDE; 37 virtual void SetSubresourceSpeculation() OVERRIDE;
38 virtual void SetOmniboxSpeculation() OVERRIDE; 38 virtual void SetOmniboxSpeculation() OVERRIDE;
39 virtual bool WasEverUsed() const OVERRIDE; 39 virtual bool WasEverUsed() const OVERRIDE;
40 virtual bool UsingTCPFastOpen() const OVERRIDE; 40 virtual bool UsingTCPFastOpen() const OVERRIDE;
41 virtual int64 NumBytesRead() const OVERRIDE; 41 virtual int64 NumBytesRead() const OVERRIDE;
42 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; 42 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
43 43
44 // Socket methods: 44 // Socket implementation.
45 virtual int Read(IOBuffer* buf, 45 virtual int Read(IOBuffer* buf,
46 int buf_len, 46 int buf_len,
47 OldCompletionCallback* callback) OVERRIDE; 47 OldCompletionCallback* callback) OVERRIDE;
48 virtual int Read(IOBuffer* buf,
49 int buf_len,
50 const CompletionCallback& callback) OVERRIDE;
48 virtual int Write(IOBuffer* buf, 51 virtual int Write(IOBuffer* buf,
49 int buf_len, 52 int buf_len,
50 OldCompletionCallback* callback) OVERRIDE; 53 OldCompletionCallback* callback) OVERRIDE;
51 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 54 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
52 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 55 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
53 56
54 private: 57 private:
55 AddressList addresses_; 58 AddressList addresses_;
56 BoundNetLog net_log_; 59 BoundNetLog net_log_;
57 Messenger messenger_; 60 Messenger messenger_;
58 ClientPacketizer packetizer_; 61 ClientPacketizer packetizer_;
59 62
60 DISALLOW_COPY_AND_ASSIGN(CurveCPClientSocket); 63 DISALLOW_COPY_AND_ASSIGN(CurveCPClientSocket);
61 }; 64 };
62 65
63 } // namespace net 66 } // namespace net
64 67
65 #endif // NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ 68 #endif // NET_CURVECP_CURVECP_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « jingle/notifier/base/proxy_resolving_client_socket.cc ('k') | net/curvecp/curvecp_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698