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_; } |