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

Unified Diff: net/quic/core/quic_multipath_received_packet_manager.h

Issue 2417023003: Remove stl_util's deletion functions from: (Closed)
Patch Set: internal snapshot 10 Created 4 years, 2 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/quic/core/quic_framer_test.cc ('k') | net/quic/core/quic_multipath_received_packet_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_multipath_received_packet_manager.h
diff --git a/net/quic/core/quic_multipath_received_packet_manager.h b/net/quic/core/quic_multipath_received_packet_manager.h
index 98ae2f5b45ce8aa4916f5772b71c73a9c2b21bfb..d85ace766fecd33d3558d50962b537af5235e69e 100644
--- a/net/quic/core/quic_multipath_received_packet_manager.h
+++ b/net/quic/core/quic_multipath_received_packet_manager.h
@@ -8,6 +8,7 @@
#ifndef NET_QUIC_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_
#define NET_QUIC_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_
+#include <memory>
#include <unordered_map>
#include <vector>
@@ -23,11 +24,12 @@ class QuicMultipathReceivedPacketManagerPeer;
class NET_EXPORT_PRIVATE QuicMultipathReceivedPacketManager {
public:
- typedef std::unordered_map<QuicPathId, QuicReceivedPacketManager*>
- MultipathReceivedPacketManagerMap;
-
explicit QuicMultipathReceivedPacketManager(QuicConnectionStats* stats);
~QuicMultipathReceivedPacketManager();
+ QuicMultipathReceivedPacketManager(
+ const QuicMultipathReceivedPacketManager&) = delete;
+ QuicMultipathReceivedPacketManager& operator=(
+ const QuicMultipathReceivedPacketManager&) = delete;
// Called when a new path with |path_id| is created.
void OnPathCreated(QuicPathId path_id, QuicConnectionStats* stats);
@@ -68,7 +70,8 @@ class NET_EXPORT_PRIVATE QuicMultipathReceivedPacketManager {
friend class test::QuicMultipathReceivedPacketManagerPeer;
// Map mapping path id to path received packet manager.
- MultipathReceivedPacketManagerMap path_managers_;
+ std::unordered_map<QuicPathId, std::unique_ptr<QuicReceivedPacketManager>>
+ path_managers_;
};
} // namespace net
« no previous file with comments | « net/quic/core/quic_framer_test.cc ('k') | net/quic/core/quic_multipath_received_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698