| 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 } | 475 } |
| 476 | 476 |
| 477 bool WebSocketBasicHandshakeStream::IsConnectionReusable() const { | 477 bool WebSocketBasicHandshakeStream::IsConnectionReusable() const { |
| 478 return false; | 478 return false; |
| 479 } | 479 } |
| 480 | 480 |
| 481 int64 WebSocketBasicHandshakeStream::GetTotalReceivedBytes() const { | 481 int64 WebSocketBasicHandshakeStream::GetTotalReceivedBytes() const { |
| 482 return 0; | 482 return 0; |
| 483 } | 483 } |
| 484 | 484 |
| 485 int64_t WebSocketBasicHandshakeStream::GetTotalSentBytes() const { |
| 486 return 0; |
| 487 } |
| 488 |
| 485 bool WebSocketBasicHandshakeStream::GetLoadTimingInfo( | 489 bool WebSocketBasicHandshakeStream::GetLoadTimingInfo( |
| 486 LoadTimingInfo* load_timing_info) const { | 490 LoadTimingInfo* load_timing_info) const { |
| 487 return state_.connection()->GetLoadTimingInfo(IsConnectionReused(), | 491 return state_.connection()->GetLoadTimingInfo(IsConnectionReused(), |
| 488 load_timing_info); | 492 load_timing_info); |
| 489 } | 493 } |
| 490 | 494 |
| 491 void WebSocketBasicHandshakeStream::GetSSLInfo(SSLInfo* ssl_info) { | 495 void WebSocketBasicHandshakeStream::GetSSLInfo(SSLInfo* ssl_info) { |
| 492 parser()->GetSSLInfo(ssl_info); | 496 parser()->GetSSLInfo(ssl_info); |
| 493 } | 497 } |
| 494 | 498 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 set_failure_message("Error during WebSocket handshake: " + failure_message); | 651 set_failure_message("Error during WebSocket handshake: " + failure_message); |
| 648 return ERR_INVALID_RESPONSE; | 652 return ERR_INVALID_RESPONSE; |
| 649 } | 653 } |
| 650 | 654 |
| 651 void WebSocketBasicHandshakeStream::set_failure_message( | 655 void WebSocketBasicHandshakeStream::set_failure_message( |
| 652 const std::string& failure_message) { | 656 const std::string& failure_message) { |
| 653 *failure_message_ = failure_message; | 657 *failure_message_ = failure_message; |
| 654 } | 658 } |
| 655 | 659 |
| 656 } // namespace net | 660 } // namespace net |
| OLD | NEW |