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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: net/tools/quic/quic_dispatcher.h
diff --git a/net/tools/quic/quic_dispatcher.h b/net/tools/quic/quic_dispatcher.h
index aaed3abeb601d41bebe6caa92154cb95397658b0..12baddedb7963eb315ff372042c4cd170be33ae1 100644
--- a/net/tools/quic/quic_dispatcher.h
+++ b/net/tools/quic/quic_dispatcher.h
@@ -23,10 +23,9 @@
#if defined(COMPILER_GCC)
namespace BASE_HASH_NAMESPACE {
-template<>
+template <>
struct hash<net::QuicBlockedWriterInterface*> {
- std::size_t operator()(
- const net::QuicBlockedWriterInterface* ptr) const {
+ std::size_t operator()(const net::QuicBlockedWriterInterface* ptr) const {
return hash<size_t>()(reinterpret_cast<size_t>(ptr));
}
};
@@ -125,9 +124,7 @@ class QuicDispatcher : public QuicServerSessionVisitor {
virtual QuicTimeWaitListManager* CreateQuicTimeWaitListManager();
// Replaces the packet writer with |writer|. Takes ownership of |writer|.
- void set_writer(QuicPacketWriter* writer) {
- writer_.reset(writer);
- }
+ void set_writer(QuicPacketWriter* writer) { writer_.reset(writer); }
QuicTimeWaitListManager* time_wait_list_manager() {
return time_wait_list_manager_.get();
@@ -143,15 +140,9 @@ class QuicDispatcher : public QuicServerSessionVisitor {
return supported_versions_no_flow_control_;
}
- const IPEndPoint& current_server_address() {
- return current_server_address_;
- }
- const IPEndPoint& current_client_address() {
- return current_client_address_;
- }
- const QuicEncryptedPacket& current_packet() {
- return *current_packet_;
- }
+ const IPEndPoint& current_server_address() { return current_server_address_; }
+ const IPEndPoint& current_client_address() { return current_client_address_; }
+ const QuicEncryptedPacket& current_packet() { return *current_packet_; }
const QuicConfig& config() const { return config_; }

Powered by Google App Engine
This is Rietveld 408576698