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

Unified Diff: net/quic/quic_framer.h

Issue 1466693002: Cleanup: clang-formatting gfe/quic/quic_framer* to comply with Chromium style guide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@107509393
Patch Set: Created 5 years, 1 month 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 | « no previous file | net/quic/quic_framer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_framer.h
diff --git a/net/quic/quic_framer.h b/net/quic/quic_framer.h
index 53ca1934380157e6540a08baf6fe4c3ded5eba26..5d9e912551e32ef3a072c936899c724ca40e0545 100644
--- a/net/quic/quic_framer.h
+++ b/net/quic/quic_framer.h
@@ -51,13 +51,11 @@ const size_t kQuicNumTimestampsSize = 1;
// Size in bytes reserved for the number of missing packets in ack frames.
const size_t kNumberOfNackRangesSize = 1;
// Maximum number of missing packet ranges that can fit within an ack frame.
-const size_t kMaxNackRanges =
- (1 << (kNumberOfNackRangesSize * 8)) - 1;
+const size_t kMaxNackRanges = (1 << (kNumberOfNackRangesSize * 8)) - 1;
// Size in bytes reserved for the number of revived packets in ack frames.
const size_t kNumberOfRevivedPacketsSize = 1;
// Maximum number of revived packets that can fit within an ack frame.
-const size_t kMaxRevivedPackets =
- (1 << (kNumberOfRevivedPacketsSize * 8)) - 1;
+const size_t kMaxRevivedPackets = (1 << (kNumberOfRevivedPacketsSize * 8)) - 1;
// This class receives callbacks from the framer when packets
// are processed.
@@ -81,8 +79,7 @@ class NET_EXPORT_PRIVATE QuicFramerVisitorInterface {
// Called when a public reset packet has been parsed but has not yet
// been validated.
- virtual void OnPublicResetPacket(
- const QuicPublicResetPacket& packet) = 0;
+ virtual void OnPublicResetPacket(const QuicPublicResetPacket& packet) = 0;
// Called only when |perspective_| is IS_CLIENT and a version negotiation
// packet has been parsed.
@@ -189,17 +186,13 @@ class NET_EXPORT_PRIVATE QuicFramer {
// else the framer will likely crash. It is acceptable for the visitor
// to do nothing. If this is called multiple times, only the last visitor
// will be used.
- void set_visitor(QuicFramerVisitorInterface* visitor) {
- visitor_ = visitor;
- }
+ void set_visitor(QuicFramerVisitorInterface* visitor) { visitor_ = visitor; }
const QuicVersionVector& supported_versions() const {
return supported_versions_;
}
- QuicVersion version() const {
- return quic_version_;
- }
+ QuicVersion version() const { return quic_version_; }
void set_version(const QuicVersion version);
@@ -218,9 +211,7 @@ class NET_EXPORT_PRIVATE QuicFramer {
entropy_calculator_ = entropy_calculator;
}
- QuicErrorCode error() const {
- return error_;
- }
+ QuicErrorCode error() const { return error_; }
// Pass a UDP packet into the framer for parsing.
// Return true if the packet was processed succesfully. |packet| must be a
@@ -233,8 +224,7 @@ class NET_EXPORT_PRIVATE QuicFramer {
// for parsing.
// Return true if the packet was processed succesfully. |payload| must be
// the complete DECRYPTED payload of the revived packet.
- bool ProcessRevivedPacket(QuicPacketHeader* header,
- base::StringPiece payload);
+ bool ProcessRevivedPacket(QuicPacketHeader* header, base::StringPiece payload);
// Largest size in bytes of all stream frame fields without the payload.
static size_t GetMinStreamFrameSize(QuicStreamId stream_id,
@@ -496,13 +486,9 @@ class NET_EXPORT_PRIVATE QuicFramer {
bool RaiseError(QuicErrorCode error);
- void set_error(QuicErrorCode error) {
- error_ = error;
- }
+ void set_error(QuicErrorCode error) { error_ = error; }
- void set_detailed_error(const char* error) {
- detailed_error_ = error;
- }
+ void set_detailed_error(const char* error) { detailed_error_ = error; }
std::string detailed_error_;
QuicFramerVisitorInterface* visitor_;
« no previous file with comments | « no previous file | net/quic/quic_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698