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

Unified Diff: extensions/renderer/v8_schema_registry.h

Issue 1899083003: Convert //extensions/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 | « extensions/renderer/user_script_set_manager.cc ('k') | extensions/renderer/v8_schema_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/v8_schema_registry.h
diff --git a/extensions/renderer/v8_schema_registry.h b/extensions/renderer/v8_schema_registry.h
index 08f54b62658dd5fbe3806fc9e25bb761bf6fb8e2..749aa1c081c5817c178970e9bdd0cef6fcb5d5a2 100644
--- a/extensions/renderer/v8_schema_registry.h
+++ b/extensions/renderer/v8_schema_registry.h
@@ -6,11 +6,11 @@
#define EXTENSIONS_RENDERER_V8_SCHEMA_REGISTRY_H_
#include <map>
+#include <memory>
#include <string>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "gin/public/context_holder.h"
#include "v8/include/v8-util.h"
#include "v8/include/v8.h"
@@ -26,7 +26,7 @@ class V8SchemaRegistry {
~V8SchemaRegistry();
// Creates a NativeHandler wrapper |this|. Supports GetSchema.
- scoped_ptr<NativeHandler> AsNativeHandler();
+ std::unique_ptr<NativeHandler> AsNativeHandler();
// Returns a v8::Array with all the schemas for the APIs in |apis|.
v8::Local<v8::Array> GetSchemas(const std::vector<std::string>& apis);
@@ -41,11 +41,11 @@ class V8SchemaRegistry {
// Cache of schemas. Created lazily by GetOrCreateContext.
typedef v8::StdGlobalValueMap<std::string, v8::Object> SchemaCache;
- scoped_ptr<SchemaCache> schema_cache_;
+ std::unique_ptr<SchemaCache> schema_cache_;
// Single per-instance gin::ContextHolder to create v8::Values.
// Created lazily via GetOrCreateContext.
- scoped_ptr<gin::ContextHolder> context_holder_;
+ std::unique_ptr<gin::ContextHolder> context_holder_;
DISALLOW_COPY_AND_ASSIGN(V8SchemaRegistry);
};
« no previous file with comments | « extensions/renderer/user_script_set_manager.cc ('k') | extensions/renderer/v8_schema_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698