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

Side by Side Diff: net/websockets/websocket_basic_handshake_stream.h

Issue 2337253004: Update Token Binding code to the latest drafts (Closed)
Patch Set: Fix compilation error in unit_tests Created 4 years, 3 months 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
OLDNEW
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 <memory> 10 #include <memory>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 bool IsResponseBodyComplete() const override; 58 bool IsResponseBodyComplete() const override;
59 bool IsConnectionReused() const override; 59 bool IsConnectionReused() const override;
60 void SetConnectionReused() override; 60 void SetConnectionReused() override;
61 bool CanReuseConnection() const override; 61 bool CanReuseConnection() const override;
62 int64_t GetTotalReceivedBytes() const override; 62 int64_t GetTotalReceivedBytes() const override;
63 int64_t GetTotalSentBytes() const override; 63 int64_t GetTotalSentBytes() const override;
64 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; 64 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override;
65 void GetSSLInfo(SSLInfo* ssl_info) override; 65 void GetSSLInfo(SSLInfo* ssl_info) override;
66 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; 66 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override;
67 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; 67 bool GetRemoteEndpoint(IPEndPoint* endpoint) override;
68 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, 68 Error GetTokenBindingSignature(crypto::ECPrivateKey* key,
69 std::vector<uint8_t>* out) override; 69 TokenBindingType tb_type,
70 std::vector<uint8_t>* out) override;
70 void Drain(HttpNetworkSession* session) override; 71 void Drain(HttpNetworkSession* session) override;
71 void SetPriority(RequestPriority priority) override; 72 void SetPriority(RequestPriority priority) override;
72 void PopulateNetErrorDetails(NetErrorDetails* details) override; 73 void PopulateNetErrorDetails(NetErrorDetails* details) override;
73 UploadProgress GetUploadProgress() const override; 74 UploadProgress GetUploadProgress() const override;
74 HttpStream* RenewStreamForAuth() override; 75 HttpStream* RenewStreamForAuth() override;
75 76
76 77
77 // This is called from the top level once correct handshake response headers 78 // This is called from the top level once correct handshake response headers
78 // have been received. It creates an appropriate subclass of WebSocketStream 79 // have been received. It creates an appropriate subclass of WebSocketStream
79 // depending on what extensions were negotiated. This object is unusable after 80 // depending on what extensions were negotiated. This object is unusable after
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 std::unique_ptr<WebSocketExtensionParams> extension_params_; 142 std::unique_ptr<WebSocketExtensionParams> extension_params_;
142 143
143 WebSocketStreamRequest* stream_request_; 144 WebSocketStreamRequest* stream_request_;
144 145
145 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); 146 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream);
146 }; 147 };
147 148
148 } // namespace net 149 } // namespace net
149 150
150 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ 151 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698