Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: net/websockets/websocket_basic_handshake_stream.cc

Issue 1314783007: Added and implemented HttpStream::GetTotalSentBytes for basic streams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased on master Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/websockets/websocket_basic_handshake_stream.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/websockets/websocket_basic_handshake_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698