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

Unified Diff: net/quic/quic_blocked_writer_interface.h

Issue 467963002: Refactoring: Create per-connection packet writers in QuicDispatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Wan-Teh's comments Created 6 years, 4 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/net.gyp ('k') | net/quic/quic_client_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « net/net.gyp ('k') | net/quic/quic_client_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698