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

Side by Side Diff: jingle/glue/pseudotcp_adapter.h

Issue 8801004: base::Bind: Convert StreamSocket::Connect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build 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 JINGLE_GLUE_PSEUDOTCP_ADAPTER_H_ 5 #ifndef JINGLE_GLUE_PSEUDOTCP_ADAPTER_H_
6 #define JINGLE_GLUE_PSEUDOTCP_ADAPTER_H_ 6 #define JINGLE_GLUE_PSEUDOTCP_ADAPTER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 21 matching lines...) Expand all
32 // net::Socket implementation. 32 // net::Socket implementation.
33 virtual int Read(net::IOBuffer* buffer, int buffer_size, 33 virtual int Read(net::IOBuffer* buffer, int buffer_size,
34 net::OldCompletionCallback* callback) OVERRIDE; 34 net::OldCompletionCallback* callback) OVERRIDE;
35 virtual int Write(net::IOBuffer* buffer, int buffer_size, 35 virtual int Write(net::IOBuffer* buffer, int buffer_size,
36 net::OldCompletionCallback* callback) OVERRIDE; 36 net::OldCompletionCallback* callback) OVERRIDE;
37 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 37 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
38 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 38 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
39 39
40 // net::StreamSocket implementation. 40 // net::StreamSocket implementation.
41 virtual int Connect(net::OldCompletionCallback* callback) OVERRIDE; 41 virtual int Connect(net::OldCompletionCallback* callback) OVERRIDE;
42 virtual int Connect(const net::CompletionCallback& callback) OVERRIDE;
42 virtual void Disconnect() OVERRIDE; 43 virtual void Disconnect() OVERRIDE;
43 virtual bool IsConnected() const OVERRIDE; 44 virtual bool IsConnected() const OVERRIDE;
44 virtual bool IsConnectedAndIdle() const OVERRIDE; 45 virtual bool IsConnectedAndIdle() const OVERRIDE;
45 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; 46 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE;
46 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; 47 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE;
47 virtual const net::BoundNetLog& NetLog() const OVERRIDE; 48 virtual const net::BoundNetLog& NetLog() const OVERRIDE;
48 virtual void SetSubresourceSpeculation() OVERRIDE; 49 virtual void SetSubresourceSpeculation() OVERRIDE;
49 virtual void SetOmniboxSpeculation() OVERRIDE; 50 virtual void SetOmniboxSpeculation() OVERRIDE;
50 virtual bool WasEverUsed() const OVERRIDE; 51 virtual bool WasEverUsed() const OVERRIDE;
51 virtual bool UsingTCPFastOpen() const OVERRIDE; 52 virtual bool UsingTCPFastOpen() const OVERRIDE;
(...skipping 12 matching lines...) Expand all
64 scoped_refptr<Core> core_; 65 scoped_refptr<Core> core_;
65 66
66 net::BoundNetLog net_log_; 67 net::BoundNetLog net_log_;
67 68
68 DISALLOW_COPY_AND_ASSIGN(PseudoTcpAdapter); 69 DISALLOW_COPY_AND_ASSIGN(PseudoTcpAdapter);
69 }; 70 };
70 71
71 } // namespace jingle_glue 72 } // namespace jingle_glue
72 73
73 #endif // JINGLE_GLUE_STREAM_SOCKET_ADAPTER_H_ 74 #endif // JINGLE_GLUE_STREAM_SOCKET_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698