| 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 } | 413 } |
| 414 | 414 |
| 415 int64_t WebSocketBasicHandshakeStream::GetTotalReceivedBytes() const { | 415 int64_t WebSocketBasicHandshakeStream::GetTotalReceivedBytes() const { |
| 416 return 0; | 416 return 0; |
| 417 } | 417 } |
| 418 | 418 |
| 419 int64_t WebSocketBasicHandshakeStream::GetTotalSentBytes() const { | 419 int64_t WebSocketBasicHandshakeStream::GetTotalSentBytes() const { |
| 420 return 0; | 420 return 0; |
| 421 } | 421 } |
| 422 | 422 |
| 423 bool WebSocketBasicHandshakeStream::GetAlternativeService( |
| 424 AlternativeService* alternative_service) const { |
| 425 return false; |
| 426 } |
| 427 |
| 423 bool WebSocketBasicHandshakeStream::GetLoadTimingInfo( | 428 bool WebSocketBasicHandshakeStream::GetLoadTimingInfo( |
| 424 LoadTimingInfo* load_timing_info) const { | 429 LoadTimingInfo* load_timing_info) const { |
| 425 return state_.connection()->GetLoadTimingInfo(IsConnectionReused(), | 430 return state_.connection()->GetLoadTimingInfo(IsConnectionReused(), |
| 426 load_timing_info); | 431 load_timing_info); |
| 427 } | 432 } |
| 428 | 433 |
| 429 void WebSocketBasicHandshakeStream::GetSSLInfo(SSLInfo* ssl_info) { | 434 void WebSocketBasicHandshakeStream::GetSSLInfo(SSLInfo* ssl_info) { |
| 430 parser()->GetSSLInfo(ssl_info); | 435 parser()->GetSSLInfo(ssl_info); |
| 431 } | 436 } |
| 432 | 437 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 } | 597 } |
| 593 OnFailure("Error during WebSocket handshake: " + failure_message); | 598 OnFailure("Error during WebSocket handshake: " + failure_message); |
| 594 return ERR_INVALID_RESPONSE; | 599 return ERR_INVALID_RESPONSE; |
| 595 } | 600 } |
| 596 | 601 |
| 597 void WebSocketBasicHandshakeStream::OnFailure(const std::string& message) { | 602 void WebSocketBasicHandshakeStream::OnFailure(const std::string& message) { |
| 598 stream_request_->OnFailure(message); | 603 stream_request_->OnFailure(message); |
| 599 } | 604 } |
| 600 | 605 |
| 601 } // namespace net | 606 } // namespace net |
| OLD | NEW |