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

Unified Diff: chrome/browser/predictors/resource_prefetcher.h

Issue 2293153002: Remove stl_util's STLDeleteContainerPairFirstPointers. (Closed)
Patch Set: fixing Created 4 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
Index: chrome/browser/predictors/resource_prefetcher.h
diff --git a/chrome/browser/predictors/resource_prefetcher.h b/chrome/browser/predictors/resource_prefetcher.h
index 43dbc8a6c67a89f6ed28ad84219a30568a471e25..3a88990bcb729829be7ccd0d71b0a7eb15b05487 100644
--- a/chrome/browser/predictors/resource_prefetcher.h
+++ b/chrome/browser/predictors/resource_prefetcher.h
@@ -7,6 +7,7 @@
#include <stddef.h>
+#include <algorithm>
pasko 2016/09/01 12:30:45 nit: std::pair is in <utility>, including that wou
#include <list>
#include <map>
#include <memory>
@@ -154,7 +155,9 @@ class ResourcePrefetcher : public net::URLRequest::Delegate {
PrefetchKeyType key_type_;
std::unique_ptr<RequestVector> request_vector_;
- std::map<net::URLRequest*, Request*> inflight_requests_;
+ std::map<net::URLRequest*,
+ std::pair<std::unique_ptr<net::URLRequest>, Request*>>
+ inflight_requests_;
std::list<Request*> request_queue_;
std::map<std::string, size_t> host_inflight_counts_;

Powered by Google App Engine
This is Rietveld 408576698