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

Unified Diff: components/certificate_transparency/log_proof_fetcher.h

Issue 2314833002: Remove some uses of stl_util's STLDeleteContainerPointers. (Closed)
Patch Set: cleanup Created 4 years, 3 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: components/certificate_transparency/log_proof_fetcher.h
diff --git a/components/certificate_transparency/log_proof_fetcher.h b/components/certificate_transparency/log_proof_fetcher.h
index 7a0c82fbeb19f1c6b35bb5682887b57519b18500..7c760a330a8e1a53432bc43e944d5202a1a3b193 100644
--- a/components/certificate_transparency/log_proof_fetcher.h
+++ b/components/certificate_transparency/log_proof_fetcher.h
@@ -108,7 +108,8 @@ class LogProofFetcher {
// Starts the fetch (by delegating to the LogResponseHandler)
// and stores the |log_handler| in |inflight_fetches_| for later
// cleanup.
- void StartFetch(const GURL& request_url, LogResponseHandler* log_handler);
+ void StartFetch(const GURL& request_url,
+ std::unique_ptr<LogResponseHandler> log_request);
// Callback for when the fetch was done (successfully or not).
// Deletes, and removes, the |log_handler| from the |inflight_fetches_|.
@@ -120,7 +121,7 @@ class LogProofFetcher {
net::URLRequestContext* const request_context_;
- std::set<LogResponseHandler*> inflight_fetches_;
+ std::set<std::unique_ptr<LogResponseHandler>> inflight_fetches_;
base::WeakPtrFactory<LogProofFetcher> weak_factory_;
« no previous file with comments | « chrome/browser/sync_file_system/task_logger.cc ('k') | components/certificate_transparency/log_proof_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698