| 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 } | 401 } |
| 402 | 402 |
| 403 void WebSocketBasicHandshakeStream::SetConnectionReused() { | 403 void WebSocketBasicHandshakeStream::SetConnectionReused() { |
| 404 parser()->SetConnectionReused(); | 404 parser()->SetConnectionReused(); |
| 405 } | 405 } |
| 406 | 406 |
| 407 bool WebSocketBasicHandshakeStream::CanReuseConnection() const { | 407 bool WebSocketBasicHandshakeStream::CanReuseConnection() const { |
| 408 return false; | 408 return false; |
| 409 } | 409 } |
| 410 | 410 |
| 411 int64 WebSocketBasicHandshakeStream::GetTotalReceivedBytes() const { | 411 int64_t WebSocketBasicHandshakeStream::GetTotalReceivedBytes() const { |
| 412 return 0; | 412 return 0; |
| 413 } | 413 } |
| 414 | 414 |
| 415 int64_t WebSocketBasicHandshakeStream::GetTotalSentBytes() const { | 415 int64_t WebSocketBasicHandshakeStream::GetTotalSentBytes() const { |
| 416 return 0; | 416 return 0; |
| 417 } | 417 } |
| 418 | 418 |
| 419 bool WebSocketBasicHandshakeStream::GetLoadTimingInfo( | 419 bool WebSocketBasicHandshakeStream::GetLoadTimingInfo( |
| 420 LoadTimingInfo* load_timing_info) const { | 420 LoadTimingInfo* load_timing_info) const { |
| 421 return state_.connection()->GetLoadTimingInfo(IsConnectionReused(), | 421 return state_.connection()->GetLoadTimingInfo(IsConnectionReused(), |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 set_failure_message("Error during WebSocket handshake: " + failure_message); | 577 set_failure_message("Error during WebSocket handshake: " + failure_message); |
| 578 return ERR_INVALID_RESPONSE; | 578 return ERR_INVALID_RESPONSE; |
| 579 } | 579 } |
| 580 | 580 |
| 581 void WebSocketBasicHandshakeStream::set_failure_message( | 581 void WebSocketBasicHandshakeStream::set_failure_message( |
| 582 const std::string& failure_message) { | 582 const std::string& failure_message) { |
| 583 *failure_message_ = failure_message; | 583 *failure_message_ = failure_message; |
| 584 } | 584 } |
| 585 | 585 |
| 586 } // namespace net | 586 } // namespace net |
| OLD | NEW |