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

Side by Side Diff: net/tools/quic/quic_packet_printer_bin.cc

Issue 2743883002: Remove PathCloseFrame, QuicPathId, DefaultPathId and InvalidPathId. (Closed)
Patch Set: 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/tools/quic/quic_dispatcher.cc ('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 // clang-format off 5 // clang-format off
6 6
7 // Dumps out the decryptable contents of a QUIC packet in a human-readable way. 7 // Dumps out the decryptable contents of a QUIC packet in a human-readable way.
8 // If the packet is null encrypted, this will dump full packet contents. 8 // If the packet is null encrypted, this will dump full packet contents.
9 // Otherwise it will dump the public header, and fail with an error that the 9 // Otherwise it will dump the public header, and fail with an error that the
10 // packet is undecryptable. 10 // packet is undecryptable.
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 return true; 135 return true;
136 } 136 }
137 bool OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) override { 137 bool OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) override {
138 std::cerr << "OnWindowUpdateFrame: " << frame; 138 std::cerr << "OnWindowUpdateFrame: " << frame;
139 return true; 139 return true;
140 } 140 }
141 bool OnBlockedFrame(const QuicBlockedFrame& frame) override { 141 bool OnBlockedFrame(const QuicBlockedFrame& frame) override {
142 std::cerr << "OnBlockedFrame: " << frame; 142 std::cerr << "OnBlockedFrame: " << frame;
143 return true; 143 return true;
144 } 144 }
145 bool OnPathCloseFrame(const QuicPathCloseFrame& frame) override {
146 std::cerr << "OnPathCloseFrame:" << frame;
147 return true;
148 }
149 void OnPacketComplete() override { std::cerr << "OnPacketComplete\n"; } 145 void OnPacketComplete() override { std::cerr << "OnPacketComplete\n"; }
150 146
151 private: 147 private:
152 QuicFramer* framer_; // Unowned. 148 QuicFramer* framer_; // Unowned.
153 }; 149 };
154 150
155 } // namespace net 151 } // namespace net
156 152
157 int main(int argc, char* argv[]) { 153 int main(int argc, char* argv[]) {
158 base::CommandLine::Init(argc, argv); 154 base::CommandLine::Init(argc, argv);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 if (net::QuicVersionToString(version) == FLAGS_quic_version) { 186 if (net::QuicVersionToString(version) == FLAGS_quic_version) {
191 framer.set_version(version); 187 framer.set_version(version);
192 } 188 }
193 } 189 }
194 } 190 }
195 net::QuicPacketPrinter visitor(&framer); 191 net::QuicPacketPrinter visitor(&framer);
196 framer.set_visitor(&visitor); 192 framer.set_visitor(&visitor);
197 net::QuicEncryptedPacket encrypted(hex.c_str(), hex.length()); 193 net::QuicEncryptedPacket encrypted(hex.c_str(), hex.length());
198 return framer.ProcessPacket(encrypted); 194 return framer.ProcessPacket(encrypted);
199 } 195 }
OLDNEW
« no previous file with comments | « net/tools/quic/quic_dispatcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698