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

Side by Side Diff: net/quic/quic_protocol.cc

Issue 242293003: Added WriteResult::WriteResult method for internal use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_protocol.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/quic/quic_protocol.h" 5 #include "net/quic/quic_protocol.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "net/quic/quic_utils.h" 8 #include "net/quic/quic_utils.h"
9 9
10 using base::StringPiece; 10 using base::StringPiece;
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 : bytes_consumed(bytes_consumed), 715 : bytes_consumed(bytes_consumed),
716 fin_consumed(fin_consumed) { 716 fin_consumed(fin_consumed) {
717 } 717 }
718 718
719 ostream& operator<<(ostream& os, const QuicConsumedData& s) { 719 ostream& operator<<(ostream& os, const QuicConsumedData& s) {
720 os << "bytes_consumed: " << s.bytes_consumed 720 os << "bytes_consumed: " << s.bytes_consumed
721 << " fin_consumed: " << s.fin_consumed; 721 << " fin_consumed: " << s.fin_consumed;
722 return os; 722 return os;
723 } 723 }
724 724
725 WriteResult::WriteResult()
726 : status(WRITE_STATUS_ERROR),
727 bytes_written(0) {
728 }
729
725 WriteResult::WriteResult(WriteStatus status, 730 WriteResult::WriteResult(WriteStatus status,
726 int bytes_written_or_error_code) 731 int bytes_written_or_error_code)
727 : status(status), 732 : status(status),
728 bytes_written(bytes_written_or_error_code) { 733 bytes_written(bytes_written_or_error_code) {
729 } 734 }
730 735
731 } // namespace net 736 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_protocol.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698