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

Side by Side Diff: net/socket/ssl_client_socket_mac.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 | « net/socket/socks_client_socket.cc ('k') | net/socket/ssl_client_socket_mac.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) 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 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #include <Security/Security.h> 9 #include <Security/Security.h>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // ClientSocket methods: 43 // ClientSocket methods:
44 virtual int Connect(CompletionCallback* callback); 44 virtual int Connect(CompletionCallback* callback);
45 virtual void Disconnect(); 45 virtual void Disconnect();
46 virtual bool IsConnected() const; 46 virtual bool IsConnected() const;
47 virtual bool IsConnectedAndIdle() const; 47 virtual bool IsConnectedAndIdle() const;
48 virtual int GetPeerAddress(AddressList* address) const; 48 virtual int GetPeerAddress(AddressList* address) const;
49 virtual const BoundNetLog& NetLog() const { return net_log_; } 49 virtual const BoundNetLog& NetLog() const { return net_log_; }
50 virtual void SetSubresourceSpeculation(); 50 virtual void SetSubresourceSpeculation();
51 virtual void SetOmniboxSpeculation(); 51 virtual void SetOmniboxSpeculation();
52 virtual bool WasEverUsed() const; 52 virtual bool WasEverUsed() const;
53 virtual bool UsingTCPFastOpen() const;
53 54
54 // Socket methods: 55 // Socket methods:
55 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 56 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
56 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); 57 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback);
57 virtual bool SetReceiveBufferSize(int32 size); 58 virtual bool SetReceiveBufferSize(int32 size);
58 virtual bool SetSendBufferSize(int32 size); 59 virtual bool SetSendBufferSize(int32 size);
59 60
60 private: 61 private:
61 bool completed_handshake() const { 62 bool completed_handshake() const {
62 return next_handshake_state_ == STATE_COMPLETED_HANDSHAKE; 63 return next_handshake_state_ == STATE_COMPLETED_HANDSHAKE;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // These are the IOBuffers used for operations on the underlying transport. 152 // These are the IOBuffers used for operations on the underlying transport.
152 scoped_refptr<IOBuffer> read_io_buf_; 153 scoped_refptr<IOBuffer> read_io_buf_;
153 scoped_refptr<IOBuffer> write_io_buf_; 154 scoped_refptr<IOBuffer> write_io_buf_;
154 155
155 BoundNetLog net_log_; 156 BoundNetLog net_log_;
156 }; 157 };
157 158
158 } // namespace net 159 } // namespace net
159 160
160 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ 161 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_
OLDNEW
« no previous file with comments | « net/socket/socks_client_socket.cc ('k') | net/socket/ssl_client_socket_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698