| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |