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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 bool IsResponseBodyComplete() const override; | 56 bool IsResponseBodyComplete() const override; |
57 bool IsConnectionReused() const override; | 57 bool IsConnectionReused() const override; |
58 void SetConnectionReused() override; | 58 void SetConnectionReused() override; |
59 bool CanReuseConnection() const override; | 59 bool CanReuseConnection() const override; |
60 int64_t GetTotalReceivedBytes() const override; | 60 int64_t GetTotalReceivedBytes() const override; |
61 int64_t GetTotalSentBytes() const override; | 61 int64_t GetTotalSentBytes() const override; |
62 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 62 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
63 void GetSSLInfo(SSLInfo* ssl_info) override; | 63 void GetSSLInfo(SSLInfo* ssl_info) override; |
64 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 64 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
65 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; | 65 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; |
| 66 int GetTokenBindingMessageHeader(std::string* out) override; |
66 void Drain(HttpNetworkSession* session) override; | 67 void Drain(HttpNetworkSession* session) override; |
67 void SetPriority(RequestPriority priority) override; | 68 void SetPriority(RequestPriority priority) override; |
68 UploadProgress GetUploadProgress() const override; | 69 UploadProgress GetUploadProgress() const override; |
69 HttpStream* RenewStreamForAuth() override; | 70 HttpStream* RenewStreamForAuth() override; |
70 | 71 |
71 | 72 |
72 // This is called from the top level once correct handshake response headers | 73 // This is called from the top level once correct handshake response headers |
73 // have been received. It creates an appropriate subclass of WebSocketStream | 74 // have been received. It creates an appropriate subclass of WebSocketStream |
74 // depending on what extensions were negotiated. This object is unusable after | 75 // depending on what extensions were negotiated. This object is unusable after |
75 // Upgrade() has been called and should be disposed of as soon as possible. | 76 // Upgrade() has been called and should be disposed of as soon as possible. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 scoped_ptr<WebSocketExtensionParams> extension_params_; | 137 scoped_ptr<WebSocketExtensionParams> extension_params_; |
137 | 138 |
138 std::string* failure_message_; | 139 std::string* failure_message_; |
139 | 140 |
140 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); | 141 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); |
141 }; | 142 }; |
142 | 143 |
143 } // namespace net | 144 } // namespace net |
144 | 145 |
145 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ | 146 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ |
OLD | NEW |