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

Side by Side Diff: net/quic/core/frames/quic_rst_stream_frame.cc

Issue 2547583002: Landing Recent QUIC changes until Fri Nov 18 23:21:04 2016 +0000 (Closed)
Patch Set: Remove explicit HTTP/2 enum usage Created 4 years 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
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/quic/core/frames/quic_rst_stream_frame.h"
6
7 using std::ostream;
8
9 namespace net {
10
11 QuicRstStreamFrame::QuicRstStreamFrame()
12 : stream_id(0), error_code(QUIC_STREAM_NO_ERROR), byte_offset(0) {}
13
14 QuicRstStreamFrame::QuicRstStreamFrame(QuicStreamId stream_id,
15 QuicRstStreamErrorCode error_code,
16 QuicStreamOffset bytes_written)
17 : stream_id(stream_id),
18 error_code(error_code),
19 byte_offset(bytes_written) {}
20
21 ostream& operator<<(ostream& os, const QuicRstStreamFrame& rst_frame) {
22 os << "{ stream_id: " << rst_frame.stream_id
23 << ", error_code: " << rst_frame.error_code << " }\n";
24 return os;
25 }
26
27 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/frames/quic_rst_stream_frame.h ('k') | net/quic/core/frames/quic_stop_waiting_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698