| 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 <memory> | 10 #include <memory> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 int ReadResponseBody(IOBuffer* buf, | 54 int ReadResponseBody(IOBuffer* buf, |
| 55 int buf_len, | 55 int buf_len, |
| 56 const CompletionCallback& callback) override; | 56 const CompletionCallback& callback) override; |
| 57 void Close(bool not_reusable) override; | 57 void Close(bool not_reusable) override; |
| 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 GetAlternativeService( |
| 65 AlternativeService* alternative_service) const override; |
| 64 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 66 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
| 65 void GetSSLInfo(SSLInfo* ssl_info) override; | 67 void GetSSLInfo(SSLInfo* ssl_info) override; |
| 66 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 68 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
| 67 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; | 69 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; |
| 68 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, | 70 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, |
| 69 TokenBindingType tb_type, | 71 TokenBindingType tb_type, |
| 70 std::vector<uint8_t>* out) override; | 72 std::vector<uint8_t>* out) override; |
| 71 void Drain(HttpNetworkSession* session) override; | 73 void Drain(HttpNetworkSession* session) override; |
| 72 void SetPriority(RequestPriority priority) override; | 74 void SetPriority(RequestPriority priority) override; |
| 73 void PopulateNetErrorDetails(NetErrorDetails* details) override; | 75 void PopulateNetErrorDetails(NetErrorDetails* details) override; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 std::unique_ptr<WebSocketExtensionParams> extension_params_; | 143 std::unique_ptr<WebSocketExtensionParams> extension_params_; |
| 142 | 144 |
| 143 WebSocketStreamRequest* stream_request_; | 145 WebSocketStreamRequest* stream_request_; |
| 144 | 146 |
| 145 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); | 147 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); |
| 146 }; | 148 }; |
| 147 | 149 |
| 148 } // namespace net | 150 } // namespace net |
| 149 | 151 |
| 150 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ | 152 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ |
| OLD | NEW |