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

Unified Diff: components/precache/core/precache_fetcher.h

Issue 1921923002: Convert //components/[o-t]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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/precache/core/precache_fetcher.h
diff --git a/components/precache/core/precache_fetcher.h b/components/precache/core/precache_fetcher.h
index b2fa352c9d8d6d9e80b8340e23eeddc64cf9be61..324ab08fa474c727cafd5a9c55bd2ebe3a5955ce 100644
--- a/components/precache/core/precache_fetcher.h
+++ b/components/precache/core/precache_fetcher.h
@@ -9,13 +9,13 @@
#include <algorithm>
#include <list>
+#include <memory>
#include <string>
#include <vector>
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "components/precache/core/fetcher_pool.h"
#include "net/url_request/url_fetcher.h"
@@ -68,7 +68,7 @@ extern const int kNoTracking;
// }
//
// private:
-// scoped_ptr<PrecacheFetcher> fetcher_;
+// std::unique_ptr<PrecacheFetcher> fetcher_;
// };
class PrecacheFetcher {
public:
@@ -145,7 +145,7 @@ class PrecacheFetcher {
// Non-owning pointer. Should not be NULL.
PrecacheDelegate* precache_delegate_;
- scoped_ptr<PrecacheConfigurationSettings> config_;
+ std::unique_ptr<PrecacheConfigurationSettings> config_;
// Tally of the total number of bytes contained in URL fetches, including
// config, manifests, and resources. This the number of bytes as they would be
@@ -223,8 +223,8 @@ class PrecacheFetcher::Fetcher : public net::URLFetcherDelegate {
FetchStage fetch_stage_;
// The cache_url_fetcher_ is kept alive until Fetcher destruction for testing.
- scoped_ptr<net::URLFetcher> cache_url_fetcher_;
- scoped_ptr<net::URLFetcher> network_url_fetcher_;
+ std::unique_ptr<net::URLFetcher> cache_url_fetcher_;
+ std::unique_ptr<net::URLFetcher> network_url_fetcher_;
int64_t response_bytes_;
int64_t network_response_bytes_;
« no previous file with comments | « components/precache/core/precache_database_unittest.cc ('k') | components/precache/core/precache_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698