| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <iterator> | 8 #include <iterator> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 } | 471 } |
| 472 | 472 |
| 473 bool WebSocketBasicHandshakeStream::CanReuseConnection() const { | 473 bool WebSocketBasicHandshakeStream::CanReuseConnection() const { |
| 474 return false; | 474 return false; |
| 475 } | 475 } |
| 476 | 476 |
| 477 int64 WebSocketBasicHandshakeStream::GetTotalReceivedBytes() const { | 477 int64 WebSocketBasicHandshakeStream::GetTotalReceivedBytes() const { |
| 478 return 0; | 478 return 0; |
| 479 } | 479 } |
| 480 | 480 |
| 481 int64_t WebSocketBasicHandshakeStream::GetTotalSentBytes() const { |
| 482 return 0; |
| 483 } |
| 484 |
| 481 bool WebSocketBasicHandshakeStream::GetLoadTimingInfo( | 485 bool WebSocketBasicHandshakeStream::GetLoadTimingInfo( |
| 482 LoadTimingInfo* load_timing_info) const { | 486 LoadTimingInfo* load_timing_info) const { |
| 483 return state_.connection()->GetLoadTimingInfo(IsConnectionReused(), | 487 return state_.connection()->GetLoadTimingInfo(IsConnectionReused(), |
| 484 load_timing_info); | 488 load_timing_info); |
| 485 } | 489 } |
| 486 | 490 |
| 487 void WebSocketBasicHandshakeStream::GetSSLInfo(SSLInfo* ssl_info) { | 491 void WebSocketBasicHandshakeStream::GetSSLInfo(SSLInfo* ssl_info) { |
| 488 parser()->GetSSLInfo(ssl_info); | 492 parser()->GetSSLInfo(ssl_info); |
| 489 } | 493 } |
| 490 | 494 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 set_failure_message("Error during WebSocket handshake: " + failure_message); | 645 set_failure_message("Error during WebSocket handshake: " + failure_message); |
| 642 return ERR_INVALID_RESPONSE; | 646 return ERR_INVALID_RESPONSE; |
| 643 } | 647 } |
| 644 | 648 |
| 645 void WebSocketBasicHandshakeStream::set_failure_message( | 649 void WebSocketBasicHandshakeStream::set_failure_message( |
| 646 const std::string& failure_message) { | 650 const std::string& failure_message) { |
| 647 *failure_message_ = failure_message; | 651 *failure_message_ = failure_message; |
| 648 } | 652 } |
| 649 | 653 |
| 650 } // namespace net | 654 } // namespace net |
| OLD | NEW |