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

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

Issue 1316863007: Change GetTotalReceivedBytes() from int64 to int64_t. (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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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