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

Unified Diff: net/tools/quic/quic_dispatcher.cc

Issue 1156623003: Miscellaneous improvements to comments and formatting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Fix_TSAN_problem_93901684
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_dispatcher.cc
diff --git a/net/tools/quic/quic_dispatcher.cc b/net/tools/quic/quic_dispatcher.cc
index a679f95d0fee5428fd29f5a92c1af813b0ac7d00..9447c22ba49187e5bdae460167cf5c1e43ff416b 100644
--- a/net/tools/quic/quic_dispatcher.cc
+++ b/net/tools/quic/quic_dispatcher.cc
@@ -81,9 +81,11 @@ class QuicDispatcher::QuicFramerVisitor : public QuicFramerVisitorInterface {
return true;
}
- // The following methods should never get called because we always return
- // false from OnUnauthenticatedHeader(). As a result, we never process the
- // payload of the packet.
+ // The following methods should never get called because
+ // OnUnauthenticatedPublicHeader() or OnUnauthenticatedHeader() (whichever was
+ // called last), will return false and prevent a subsequent invocation of
+ // these methods. Thus, the payload of the packet is never processed in the
+ // dispatcher.
void OnPublicResetPacket(const QuicPublicResetPacket& /*packet*/) override {
DCHECK(false);
}
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698