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

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

Issue 4039003: Add experimental option for TCP FastOpen.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « chrome/common/chrome_switches.cc ('k') | jingle/notifier/base/fake_ssl_client_socket.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 ClientSocket implementation is to be used with servers that 5 // This ClientSocket 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual bool SetSendBufferSize(int32 size); 53 virtual bool SetSendBufferSize(int32 size);
54 virtual int Connect(net::CompletionCallback* callback); 54 virtual int Connect(net::CompletionCallback* callback);
55 virtual void Disconnect(); 55 virtual void Disconnect();
56 virtual bool IsConnected() const; 56 virtual bool IsConnected() const;
57 virtual bool IsConnectedAndIdle() const; 57 virtual bool IsConnectedAndIdle() const;
58 virtual int GetPeerAddress(net::AddressList* address) const; 58 virtual int GetPeerAddress(net::AddressList* address) const;
59 virtual const net::BoundNetLog& NetLog() const; 59 virtual const net::BoundNetLog& NetLog() const;
60 virtual void SetSubresourceSpeculation(); 60 virtual void SetSubresourceSpeculation();
61 virtual void SetOmniboxSpeculation(); 61 virtual void SetOmniboxSpeculation();
62 virtual bool WasEverUsed() const; 62 virtual bool WasEverUsed() const;
63 virtual bool UsingTCPFastOpen() const;
63 64
64 private: 65 private:
65 enum HandshakeState { 66 enum HandshakeState {
66 STATE_NONE, 67 STATE_NONE,
67 STATE_CONNECT, 68 STATE_CONNECT,
68 STATE_SEND_CLIENT_HELLO, 69 STATE_SEND_CLIENT_HELLO,
69 STATE_VERIFY_SERVER_HELLO, 70 STATE_VERIFY_SERVER_HELLO,
70 }; 71 };
71 72
72 int DoHandshakeLoop(); 73 int DoHandshakeLoop();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // The callback passed to Connect(). 105 // The callback passed to Connect().
105 net::CompletionCallback* user_connect_callback_; 106 net::CompletionCallback* user_connect_callback_;
106 107
107 scoped_refptr<net::DrainableIOBuffer> write_buf_; 108 scoped_refptr<net::DrainableIOBuffer> write_buf_;
108 scoped_refptr<net::DrainableIOBuffer> read_buf_; 109 scoped_refptr<net::DrainableIOBuffer> read_buf_;
109 }; 110 };
110 111
111 } // namespace notifier 112 } // namespace notifier
112 113
113 #endif // JINGLE_NOTIFIER_BASE_FAKE_SSL_CLIENT_SOCKET_H_ 114 #endif // JINGLE_NOTIFIER_BASE_FAKE_SSL_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.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