OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ | 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ |
6 #define NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ | 6 #define NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 bool IsResponseBodyComplete() const override; | 57 bool IsResponseBodyComplete() const override; |
58 bool IsConnectionReused() const override; | 58 bool IsConnectionReused() const override; |
59 void SetConnectionReused() override; | 59 void SetConnectionReused() override; |
60 bool CanReuseConnection() const override; | 60 bool CanReuseConnection() const override; |
61 int64_t GetTotalReceivedBytes() const override; | 61 int64_t GetTotalReceivedBytes() const override; |
62 int64_t GetTotalSentBytes() const override; | 62 int64_t GetTotalSentBytes() const override; |
63 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 63 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
64 void GetSSLInfo(SSLInfo* ssl_info) override; | 64 void GetSSLInfo(SSLInfo* ssl_info) override; |
65 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 65 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
66 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; | 66 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; |
| 67 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, |
| 68 std::vector<uint8_t>* out) override; |
67 void Drain(HttpNetworkSession* session) override; | 69 void Drain(HttpNetworkSession* session) override; |
68 void SetPriority(RequestPriority priority) override; | 70 void SetPriority(RequestPriority priority) override; |
69 void PopulateNetErrorDetails(NetErrorDetails* details) override; | 71 void PopulateNetErrorDetails(NetErrorDetails* details) override; |
70 UploadProgress GetUploadProgress() const override; | 72 UploadProgress GetUploadProgress() const override; |
71 HttpStream* RenewStreamForAuth() override; | 73 HttpStream* RenewStreamForAuth() override; |
72 | 74 |
73 | 75 |
74 // This is called from the top level once correct handshake response headers | 76 // This is called from the top level once correct handshake response headers |
75 // have been received. It creates an appropriate subclass of WebSocketStream | 77 // have been received. It creates an appropriate subclass of WebSocketStream |
76 // depending on what extensions were negotiated. This object is unusable after | 78 // depending on what extensions were negotiated. This object is unusable after |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 scoped_ptr<WebSocketExtensionParams> extension_params_; | 140 scoped_ptr<WebSocketExtensionParams> extension_params_; |
139 | 141 |
140 std::string* failure_message_; | 142 std::string* failure_message_; |
141 | 143 |
142 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); | 144 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); |
143 }; | 145 }; |
144 | 146 |
145 } // namespace net | 147 } // namespace net |
146 | 148 |
147 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ | 149 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ |
OLD | NEW |