Index: net/quic/quic_blocked_writer_interface.h |
diff --git a/net/quic/quic_blocked_writer_interface.h b/net/quic/quic_blocked_writer_interface.h |
index a6f6faf8175b822f69c25e6227a7549267f46141..90f3fb37f73fb6065b5453f1e961a10967b0e8f6 100644 |
--- a/net/quic/quic_blocked_writer_interface.h |
+++ b/net/quic/quic_blocked_writer_interface.h |
@@ -24,4 +24,16 @@ class NET_EXPORT_PRIVATE QuicBlockedWriterInterface { |
} // namespace net |
+#if defined(COMPILER_GCC) |
+namespace BASE_HASH_NAMESPACE { |
+template <> |
wtc
2014/08/14 20:05:00
Please add the following comment before this line:
dmz
2014/08/14 21:24:51
Done.
|
+struct hash<net::QuicBlockedWriterInterface*> { |
+ std::size_t operator()(const net::QuicBlockedWriterInterface* ptr) const { |
+ size_t k = reinterpret_cast<size_t>(ptr); |
+ return k + (k >> 6); |
+ } |
+}; |
+} |
+#endif |
+ |
#endif // NET_QUIC_QUIC_BLOCKED_WRITER_INTERFACE_H_ |