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

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

Issue 309013006: Add quic_types.h and move the typedefs unrelated to the QUIC protocol (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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') | net/quic/quic_types.h » ('j') | 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 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 : retransmittable_frames(retransmittable_frames), 776 : retransmittable_frames(retransmittable_frames),
777 sequence_number_length(sequence_number_length), 777 sequence_number_length(sequence_number_length),
778 sent_time(QuicTime::Zero()), 778 sent_time(QuicTime::Zero()),
779 bytes_sent(0), 779 bytes_sent(0),
780 nack_count(0), 780 nack_count(0),
781 all_transmissions(all_transmissions), 781 all_transmissions(all_transmissions),
782 in_flight(false) { 782 in_flight(false) {
783 all_transmissions->insert(sequence_number); 783 all_transmissions->insert(sequence_number);
784 } 784 }
785 785
786 QuicConsumedData::QuicConsumedData(size_t bytes_consumed,
787 bool fin_consumed)
788 : bytes_consumed(bytes_consumed),
789 fin_consumed(fin_consumed) {
790 }
791
792 ostream& operator<<(ostream& os, const QuicConsumedData& s) {
793 os << "bytes_consumed: " << s.bytes_consumed
794 << " fin_consumed: " << s.fin_consumed;
795 return os;
796 }
797
798 WriteResult::WriteResult()
799 : status(WRITE_STATUS_ERROR),
800 bytes_written(0) {
801 }
802
803 WriteResult::WriteResult(WriteStatus status,
804 int bytes_written_or_error_code)
805 : status(status),
806 bytes_written(bytes_written_or_error_code) {
807 }
808
809 } // namespace net 786 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/quic/quic_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698