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

Unified Diff: net/quic/chromium/crypto/channel_id_chromium.h

Issue 2417183003: Remove stl_util's deletion functions from remaining quic code. (Closed)
Patch Set: rebase 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 | « no previous file | net/quic/chromium/crypto/channel_id_chromium.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/crypto/channel_id_chromium.h
diff --git a/net/quic/chromium/crypto/channel_id_chromium.h b/net/quic/chromium/crypto/channel_id_chromium.h
index 2baa587f0a93d7a02cc7b07ade70633879525a28..fa842969f1dc2130a38ccce7204e689b3b5e1622 100644
--- a/net/quic/chromium/crypto/channel_id_chromium.h
+++ b/net/quic/chromium/crypto/channel_id_chromium.h
@@ -5,7 +5,8 @@
#ifndef NET_QUIC_CRYPTO_CHANNEL_ID_CHROMIUM_H_
#define NET_QUIC_CRYPTO_CHANNEL_ID_CHROMIUM_H_
-#include <set>
+#include <map>
+#include <memory>
#include <string>
#include "base/macros.h"
@@ -48,12 +49,11 @@ class ChannelIDSourceChromium : public ChannelIDSource {
private:
class Job;
- typedef std::set<Job*> JobSet;
void OnJobComplete(Job* job);
// Set owning pointers to active jobs.
- JobSet active_jobs_;
+ std::map<Job*, std::unique_ptr<Job>> active_jobs_;
// The service for retrieving Channel ID keys.
ChannelIDService* const channel_id_service_;
« no previous file with comments | « no previous file | net/quic/chromium/crypto/channel_id_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698