OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 5 #ifndef NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 // StreamSocket implementation. | 64 // StreamSocket implementation. |
65 int Connect(const CompletionCallback& callback) override; | 65 int Connect(const CompletionCallback& callback) override; |
66 void Disconnect() override; | 66 void Disconnect() override; |
67 bool IsConnected() const override; | 67 bool IsConnected() const override; |
68 bool IsConnectedAndIdle() const override; | 68 bool IsConnectedAndIdle() const override; |
69 const BoundNetLog& NetLog() const override; | 69 const BoundNetLog& NetLog() const override; |
70 void SetSubresourceSpeculation() override; | 70 void SetSubresourceSpeculation() override; |
71 void SetOmniboxSpeculation() override; | 71 void SetOmniboxSpeculation() override; |
72 bool WasEverUsed() const override; | 72 bool WasEverUsed() const override; |
73 bool UsingTCPFastOpen() const override; | |
74 bool WasNpnNegotiated() const override; | 73 bool WasNpnNegotiated() const override; |
75 NextProto GetNegotiatedProtocol() const override; | 74 NextProto GetNegotiatedProtocol() const override; |
76 bool GetSSLInfo(SSLInfo* ssl_info) override; | 75 bool GetSSLInfo(SSLInfo* ssl_info) override; |
77 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 76 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
78 void ClearConnectionAttempts() override {} | 77 void ClearConnectionAttempts() override {} |
79 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 78 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
80 int64_t GetTotalReceivedBytes() const override; | 79 int64_t GetTotalReceivedBytes() const override; |
81 | 80 |
82 // Socket implementation. | 81 // Socket implementation. |
83 int Read(IOBuffer* buf, | 82 int Read(IOBuffer* buf, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // Only used for posting write callbacks. Weak pointers created by this | 177 // Only used for posting write callbacks. Weak pointers created by this |
179 // factory are invalidated in Disconnect(). | 178 // factory are invalidated in Disconnect(). |
180 base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_; | 179 base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_; |
181 | 180 |
182 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 181 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
183 }; | 182 }; |
184 | 183 |
185 } // namespace net | 184 } // namespace net |
186 | 185 |
187 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 186 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
OLD | NEW |