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

Unified Diff: gin/per_isolate_data.h

Issue 1848423002: Convert //gin to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « gin/modules/timer_unittest.cc ('k') | gin/per_isolate_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/per_isolate_data.h
diff --git a/gin/per_isolate_data.h b/gin/per_isolate_data.h
index a1ef4747aa97d5f6921742a58591e5b291d83e41..9b804aa4ba5d885dc96d3d0d903f430ab7dfae1f 100644
--- a/gin/per_isolate_data.h
+++ b/gin/per_isolate_data.h
@@ -6,10 +6,10 @@
#define GIN_PER_ISOLATE_DATA_H_
#include <map>
+#include <memory>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "gin/gin_export.h"
#include "gin/public/v8_idle_task_runner.h"
#include "gin/public/wrapper_info.h"
@@ -65,7 +65,7 @@ class GIN_EXPORT PerIsolateData {
WrappableBase* base);
NamedPropertyInterceptor* GetNamedPropertyInterceptor(WrappableBase* base);
- void EnableIdleTasks(scoped_ptr<V8IdleTaskRunner> idle_task_runner);
+ void EnableIdleTasks(std::unique_ptr<V8IdleTaskRunner> idle_task_runner);
v8::Isolate* isolate() { return isolate_; }
v8::ArrayBuffer::Allocator* allocator() { return allocator_; }
@@ -93,7 +93,7 @@ class GIN_EXPORT PerIsolateData {
IndexedPropertyInterceptorMap indexed_interceptors_;
NamedPropertyInterceptorMap named_interceptors_;
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
- scoped_ptr<V8IdleTaskRunner> idle_task_runner_;
+ std::unique_ptr<V8IdleTaskRunner> idle_task_runner_;
DISALLOW_COPY_AND_ASSIGN(PerIsolateData);
};
« no previous file with comments | « gin/modules/timer_unittest.cc ('k') | gin/per_isolate_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698