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

Side by Side Diff: jingle/notifier/base/fake_ssl_client_socket.h

Issue 8889036: Revert 113699 - base::Bind: Convert Socket::Write. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
Property Changes:
Deleted: svn:mergeinfo
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 // This StreamSocket implementation is to be used with servers that 5 // This StreamSocket implementation is to be used with servers that
6 // accept connections on port 443 but don't really use SSL. For 6 // accept connections on port 443 but don't really use SSL. For
7 // example, the Google Talk servers do this to bypass proxies. (The 7 // example, the Google Talk servers do this to bypass proxies. (The
8 // connection is upgraded to TLS as part of the XMPP negotiation, so 8 // connection is upgraded to TLS as part of the XMPP negotiation, so
9 // security is preserved.) A "fake" SSL handshake is done immediately 9 // security is preserved.) A "fake" SSL handshake is done immediately
10 // after connection to fool proxies into thinking that this is a real 10 // after connection to fool proxies into thinking that this is a real
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 static base::StringPiece GetSslClientHello(); 45 static base::StringPiece GetSslClientHello();
46 static base::StringPiece GetSslServerHello(); 46 static base::StringPiece GetSslServerHello();
47 47
48 // net::StreamSocket implementation. 48 // net::StreamSocket implementation.
49 virtual int Read(net::IOBuffer* buf, int buf_len, 49 virtual int Read(net::IOBuffer* buf, int buf_len,
50 net::OldCompletionCallback* callback) OVERRIDE; 50 net::OldCompletionCallback* callback) OVERRIDE;
51 virtual int Read(net::IOBuffer* buf, int buf_len, 51 virtual int Read(net::IOBuffer* buf, int buf_len,
52 const net::CompletionCallback& callback) OVERRIDE; 52 const net::CompletionCallback& callback) OVERRIDE;
53 virtual int Write(net::IOBuffer* buf, int buf_len, 53 virtual int Write(net::IOBuffer* buf, int buf_len,
54 net::OldCompletionCallback* callback) OVERRIDE; 54 net::OldCompletionCallback* callback) OVERRIDE;
55 virtual int Write(net::IOBuffer* buf, int buf_len,
56 const net::CompletionCallback& callback) OVERRIDE;
57 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 55 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
58 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 56 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
59 virtual int Connect(net::OldCompletionCallback* callback) OVERRIDE; 57 virtual int Connect(net::OldCompletionCallback* callback) OVERRIDE;
60 virtual int Connect(const net::CompletionCallback& callback) OVERRIDE; 58 virtual int Connect(const net::CompletionCallback& callback) OVERRIDE;
61 virtual void Disconnect() OVERRIDE; 59 virtual void Disconnect() OVERRIDE;
62 virtual bool IsConnected() const OVERRIDE; 60 virtual bool IsConnected() const OVERRIDE;
63 virtual bool IsConnectedAndIdle() const OVERRIDE; 61 virtual bool IsConnectedAndIdle() const OVERRIDE;
64 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; 62 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE;
65 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; 63 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE;
66 virtual const net::BoundNetLog& NetLog() const OVERRIDE; 64 virtual const net::BoundNetLog& NetLog() const OVERRIDE;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 net::OldCompletionCallback* old_user_connect_callback_; 113 net::OldCompletionCallback* old_user_connect_callback_;
116 net::CompletionCallback user_connect_callback_; 114 net::CompletionCallback user_connect_callback_;
117 115
118 scoped_refptr<net::DrainableIOBuffer> write_buf_; 116 scoped_refptr<net::DrainableIOBuffer> write_buf_;
119 scoped_refptr<net::DrainableIOBuffer> read_buf_; 117 scoped_refptr<net::DrainableIOBuffer> read_buf_;
120 }; 118 };
121 119
122 } // namespace notifier 120 } // namespace notifier
123 121
124 #endif // JINGLE_NOTIFIER_BASE_FAKE_SSL_CLIENT_SOCKET_H_ 122 #endif // JINGLE_NOTIFIER_BASE_FAKE_SSL_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « jingle/glue/pseudotcp_adapter_unittest.cc ('k') | jingle/notifier/base/fake_ssl_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698