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/tools/quic/chlo_extractor.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/quic/test_tools/simple_quic_framer.cc ('k') | net/tools/quic/quic_dispatcher.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/tools/quic/chlo_extractor.h" 5 #include "net/tools/quic/chlo_extractor.h"
6 6
7 #include "net/quic/core/crypto/crypto_framer.h" 7 #include "net/quic/core/crypto/crypto_framer.h"
8 #include "net/quic/core/crypto/crypto_handshake_message.h" 8 #include "net/quic/core/crypto/crypto_handshake_message.h"
9 #include "net/quic/core/crypto/crypto_protocol.h" 9 #include "net/quic/core/crypto/crypto_protocol.h"
10 #include "net/quic/core/crypto/quic_decrypter.h" 10 #include "net/quic/core/crypto/quic_decrypter.h"
(...skipping 27 matching lines...) Expand all
38 bool OnPacketHeader(const QuicPacketHeader& header) override; 38 bool OnPacketHeader(const QuicPacketHeader& header) override;
39 bool OnStreamFrame(const QuicStreamFrame& frame) override; 39 bool OnStreamFrame(const QuicStreamFrame& frame) override;
40 bool OnAckFrame(const QuicAckFrame& frame) override; 40 bool OnAckFrame(const QuicAckFrame& frame) override;
41 bool OnStopWaitingFrame(const QuicStopWaitingFrame& frame) override; 41 bool OnStopWaitingFrame(const QuicStopWaitingFrame& frame) override;
42 bool OnPingFrame(const QuicPingFrame& frame) override; 42 bool OnPingFrame(const QuicPingFrame& frame) override;
43 bool OnRstStreamFrame(const QuicRstStreamFrame& frame) override; 43 bool OnRstStreamFrame(const QuicRstStreamFrame& frame) override;
44 bool OnConnectionCloseFrame(const QuicConnectionCloseFrame& frame) override; 44 bool OnConnectionCloseFrame(const QuicConnectionCloseFrame& frame) override;
45 bool OnGoAwayFrame(const QuicGoAwayFrame& frame) override; 45 bool OnGoAwayFrame(const QuicGoAwayFrame& frame) override;
46 bool OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) override; 46 bool OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) override;
47 bool OnBlockedFrame(const QuicBlockedFrame& frame) override; 47 bool OnBlockedFrame(const QuicBlockedFrame& frame) override;
48 bool OnPathCloseFrame(const QuicPathCloseFrame& frame) override;
49 bool OnPaddingFrame(const QuicPaddingFrame& frame) override; 48 bool OnPaddingFrame(const QuicPaddingFrame& frame) override;
50 void OnPacketComplete() override {} 49 void OnPacketComplete() override {}
51 50
52 // CryptoFramerVisitorInterface implementation. 51 // CryptoFramerVisitorInterface implementation.
53 void OnError(CryptoFramer* framer) override; 52 void OnError(CryptoFramer* framer) override;
54 void OnHandshakeMessage(const CryptoHandshakeMessage& message) override; 53 void OnHandshakeMessage(const CryptoHandshakeMessage& message) override;
55 54
56 bool found_chlo() { return found_chlo_; } 55 bool found_chlo() { return found_chlo_; }
57 56
58 private: 57 private:
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 128
130 bool ChloFramerVisitor::OnWindowUpdateFrame( 129 bool ChloFramerVisitor::OnWindowUpdateFrame(
131 const QuicWindowUpdateFrame& frame) { 130 const QuicWindowUpdateFrame& frame) {
132 return true; 131 return true;
133 } 132 }
134 133
135 bool ChloFramerVisitor::OnBlockedFrame(const QuicBlockedFrame& frame) { 134 bool ChloFramerVisitor::OnBlockedFrame(const QuicBlockedFrame& frame) {
136 return true; 135 return true;
137 } 136 }
138 137
139 bool ChloFramerVisitor::OnPathCloseFrame(const QuicPathCloseFrame& frame) {
140 return true;
141 }
142
143 bool ChloFramerVisitor::OnPaddingFrame(const QuicPaddingFrame& frame) { 138 bool ChloFramerVisitor::OnPaddingFrame(const QuicPaddingFrame& frame) {
144 return true; 139 return true;
145 } 140 }
146 141
147 void ChloFramerVisitor::OnError(CryptoFramer* framer) {} 142 void ChloFramerVisitor::OnError(CryptoFramer* framer) {}
148 143
149 void ChloFramerVisitor::OnHandshakeMessage( 144 void ChloFramerVisitor::OnHandshakeMessage(
150 const CryptoHandshakeMessage& message) { 145 const CryptoHandshakeMessage& message) {
151 if (delegate_ != nullptr) { 146 if (delegate_ != nullptr) {
152 delegate_->OnChlo(framer_->version(), connection_id_, message); 147 delegate_->OnChlo(framer_->version(), connection_id_, message);
(...skipping 10 matching lines...) Expand all
163 QuicFramer framer(versions, QuicTime::Zero(), Perspective::IS_SERVER); 158 QuicFramer framer(versions, QuicTime::Zero(), Perspective::IS_SERVER);
164 ChloFramerVisitor visitor(&framer, delegate); 159 ChloFramerVisitor visitor(&framer, delegate);
165 framer.set_visitor(&visitor); 160 framer.set_visitor(&visitor);
166 if (!framer.ProcessPacket(packet)) { 161 if (!framer.ProcessPacket(packet)) {
167 return false; 162 return false;
168 } 163 }
169 return visitor.found_chlo(); 164 return visitor.found_chlo();
170 } 165 }
171 166
172 } // namespace net 167 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/simple_quic_framer.cc ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698