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

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

Issue 2740453006: Add QuicStringPiece which is actually StringPiece. (Closed)
Patch Set: fix compile error and rebase Created 3 years, 9 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/quic/core/frames/quic_ack_frame.h ('k') | net/quic/core/frames/quic_stream_frame.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) 2016 The Chromium Authors. All rights reserved. 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 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/core/frames/quic_frame.h" 5 #include "net/quic/core/frames/quic_frame.h"
6 #include "net/quic/platform/api/quic_logging.h" 6 #include "net/quic/platform/api/quic_logging.h"
7 7
8 using base::StringPiece;
9 using std::string; 8 using std::string;
10 9
11 namespace net { 10 namespace net {
12 11
13 QuicFrame::QuicFrame() {} 12 QuicFrame::QuicFrame() {}
14 13
15 QuicFrame::QuicFrame(QuicPaddingFrame padding_frame) 14 QuicFrame::QuicFrame(QuicPaddingFrame padding_frame)
16 : type(PADDING_FRAME), padding_frame(padding_frame) {} 15 : type(PADDING_FRAME), padding_frame(padding_frame) {}
17 16
18 QuicFrame::QuicFrame(QuicStreamFrame* stream_frame) 17 QuicFrame::QuicFrame(QuicStreamFrame* stream_frame)
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 153 }
155 default: { 154 default: {
156 QUIC_LOG(ERROR) << "Unknown frame type: " << frame.type; 155 QUIC_LOG(ERROR) << "Unknown frame type: " << frame.type;
157 break; 156 break;
158 } 157 }
159 } 158 }
160 return os; 159 return os;
161 } 160 }
162 161
163 } // namespace net 162 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/frames/quic_ack_frame.h ('k') | net/quic/core/frames/quic_stream_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698