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

Unified Diff: net/tools/flip_server/mem_cache.h

Issue 1893083002: Change scoped_ptr to std::unique_ptr in //net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-net-all: iwyu 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
« no previous file with comments | « net/tools/flip_server/http_interface_test.cc ('k') | net/tools/flip_server/mem_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/flip_server/mem_cache.h
diff --git a/net/tools/flip_server/mem_cache.h b/net/tools/flip_server/mem_cache.h
index 6b85149eca0e804e6447f72f6a3a730e152c35f2..f073cb6aa076153c0f8369a9dae5bf1590dda58d 100644
--- a/net/tools/flip_server/mem_cache.h
+++ b/net/tools/flip_server/mem_cache.h
@@ -9,11 +9,11 @@
#include <stdint.h>
#include <map>
+#include <memory>
#include <string>
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "net/tools/balsa/balsa_headers.h"
#include "net/tools/balsa/balsa_visitor_interface.h"
#include "net/tools/flip_server/constants.h"
@@ -78,7 +78,7 @@ class FileData {
const std::string& body() { return body_; }
private:
- scoped_ptr<BalsaHeaders> headers_;
+ std::unique_ptr<BalsaHeaders> headers_;
std::string filename_;
std::string body_;
@@ -114,7 +114,7 @@ class MemCacheIter {
class MemoryCache {
public:
- using Files = std::map<std::string, scoped_ptr<FileData>>;
+ using Files = std::map<std::string, std::unique_ptr<FileData>>;
public:
MemoryCache();
« no previous file with comments | « net/tools/flip_server/http_interface_test.cc ('k') | net/tools/flip_server/mem_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698