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

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

Issue 8831001: base::Bind: Convert Socket::Write. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix alignment. 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
« no previous file with comments | « jingle/glue/channel_socket_adapter.cc ('k') | jingle/glue/pseudotcp_adapter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 18 matching lines...) Expand all
29 PseudoTcpAdapter(net::Socket* socket); 29 PseudoTcpAdapter(net::Socket* socket);
30 virtual ~PseudoTcpAdapter(); 30 virtual ~PseudoTcpAdapter();
31 31
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 Read(net::IOBuffer* buffer, int buffer_size, 35 virtual int Read(net::IOBuffer* buffer, int buffer_size,
36 const net::CompletionCallback& callback) OVERRIDE; 36 const net::CompletionCallback& callback) OVERRIDE;
37 virtual int Write(net::IOBuffer* buffer, int buffer_size, 37 virtual int Write(net::IOBuffer* buffer, int buffer_size,
38 net::OldCompletionCallback* callback) OVERRIDE; 38 net::OldCompletionCallback* callback) OVERRIDE;
39 virtual int Write(net::IOBuffer* buffer, int buffer_size,
40 const net::CompletionCallback& callback) OVERRIDE;
39 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 41 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
40 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 42 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
41 43
42 // net::StreamSocket implementation. 44 // net::StreamSocket implementation.
43 virtual int Connect(net::OldCompletionCallback* callback) OVERRIDE; 45 virtual int Connect(net::OldCompletionCallback* callback) OVERRIDE;
44 virtual int Connect(const net::CompletionCallback& callback) OVERRIDE; 46 virtual int Connect(const net::CompletionCallback& callback) OVERRIDE;
45 virtual void Disconnect() OVERRIDE; 47 virtual void Disconnect() OVERRIDE;
46 virtual bool IsConnected() const OVERRIDE; 48 virtual bool IsConnected() const OVERRIDE;
47 virtual bool IsConnectedAndIdle() const OVERRIDE; 49 virtual bool IsConnectedAndIdle() const OVERRIDE;
48 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; 50 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE;
(...skipping 18 matching lines...) Expand all
67 scoped_refptr<Core> core_; 69 scoped_refptr<Core> core_;
68 70
69 net::BoundNetLog net_log_; 71 net::BoundNetLog net_log_;
70 72
71 DISALLOW_COPY_AND_ASSIGN(PseudoTcpAdapter); 73 DISALLOW_COPY_AND_ASSIGN(PseudoTcpAdapter);
72 }; 74 };
73 75
74 } // namespace jingle_glue 76 } // namespace jingle_glue
75 77
76 #endif // JINGLE_GLUE_STREAM_SOCKET_ADAPTER_H_ 78 #endif // JINGLE_GLUE_STREAM_SOCKET_ADAPTER_H_
OLDNEW
« no previous file with comments | « jingle/glue/channel_socket_adapter.cc ('k') | jingle/glue/pseudotcp_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698