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 #include "net/websockets/websocket_basic_handshake_stream.h" | 5 #include "net/websockets/websocket_basic_handshake_stream.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <iterator> | 9 #include <iterator> |
10 #include <set> | 10 #include <set> |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 return false; | 440 return false; |
441 | 441 |
442 return state_.connection()->socket()->GetPeerAddress(endpoint) == OK; | 442 return state_.connection()->socket()->GetPeerAddress(endpoint) == OK; |
443 } | 443 } |
444 | 444 |
445 void WebSocketBasicHandshakeStream::PopulateNetErrorDetails( | 445 void WebSocketBasicHandshakeStream::PopulateNetErrorDetails( |
446 NetErrorDetails* /*details*/) { | 446 NetErrorDetails* /*details*/) { |
447 return; | 447 return; |
448 } | 448 } |
449 | 449 |
450 Error WebSocketBasicHandshakeStream::GetSignedEKMForTokenBinding( | 450 Error WebSocketBasicHandshakeStream::GetTokenBindingSignature( |
451 crypto::ECPrivateKey* key, | 451 crypto::ECPrivateKey* key, |
| 452 TokenBindingType tb_type, |
452 std::vector<uint8_t>* out) { | 453 std::vector<uint8_t>* out) { |
453 NOTREACHED(); | 454 NOTREACHED(); |
454 return ERR_NOT_IMPLEMENTED; | 455 return ERR_NOT_IMPLEMENTED; |
455 } | 456 } |
456 | 457 |
457 void WebSocketBasicHandshakeStream::Drain(HttpNetworkSession* session) { | 458 void WebSocketBasicHandshakeStream::Drain(HttpNetworkSession* session) { |
458 HttpResponseBodyDrainer* drainer = new HttpResponseBodyDrainer(this); | 459 HttpResponseBodyDrainer* drainer = new HttpResponseBodyDrainer(this); |
459 drainer->Start(session); | 460 drainer->Start(session); |
460 // |drainer| will delete itself. | 461 // |drainer| will delete itself. |
461 } | 462 } |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 } | 596 } |
596 OnFailure("Error during WebSocket handshake: " + failure_message); | 597 OnFailure("Error during WebSocket handshake: " + failure_message); |
597 return ERR_INVALID_RESPONSE; | 598 return ERR_INVALID_RESPONSE; |
598 } | 599 } |
599 | 600 |
600 void WebSocketBasicHandshakeStream::OnFailure(const std::string& message) { | 601 void WebSocketBasicHandshakeStream::OnFailure(const std::string& message) { |
601 stream_request_->OnFailure(message); | 602 stream_request_->OnFailure(message); |
602 } | 603 } |
603 | 604 |
604 } // namespace net | 605 } // namespace net |
OLD | NEW |