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

Unified Diff: net/url_request/report_sender.h

Issue 2385003002: Remove stl_util's deletion functions from net/url_request/. (Closed)
Patch Set: to map 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/url_request/report_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/report_sender.h
diff --git a/net/url_request/report_sender.h b/net/url_request/report_sender.h
index 0bcf28737f5642557acd7337203c6ae3f8ba71a4..18ac524c06785b0080b60a32838c4d7d42d69e48 100644
--- a/net/url_request/report_sender.h
+++ b/net/url_request/report_sender.h
@@ -5,8 +5,8 @@
#ifndef NET_URL_REQUEST_REPORT_SENDER_H_
#define NET_URL_REQUEST_REPORT_SENDER_H_
+#include <map>
#include <memory>
-#include <set>
#include <string>
#include "base/callback.h"
@@ -68,8 +68,7 @@ class NET_EXPORT ReportSender
CookiesPreference cookies_preference_;
- // Owns the contained requests.
- std::set<URLRequest*> inflight_requests_;
+ std::map<URLRequest*, std::unique_ptr<URLRequest>> inflight_requests_;
// Called when a sent report results in an error.
ErrorCallback error_callback_;
« no previous file with comments | « no previous file | net/url_request/report_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698