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

Unified Diff: content/public/child/v8_value_converter.h

Issue 1113783002: Use Local instead of Handle in src/content/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « content/child/webmessageportchannel_impl.cc ('k') | content/public/renderer/render_frame_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/child/v8_value_converter.h
diff --git a/content/public/child/v8_value_converter.h b/content/public/child/v8_value_converter.h
index bd0d454da476da20b9f6b4ab9c754590583415a2..a7a0e8946f0806772687d78bfe0d1b03cf58ae33 100644
--- a/content/public/child/v8_value_converter.h
+++ b/content/public/child/v8_value_converter.h
@@ -29,7 +29,7 @@ class CONTENT_EXPORT V8ValueConverter {
class CONTENT_EXPORT Strategy {
public:
typedef base::Callback<base::Value*(
- v8::Handle<v8::Value>, v8::Isolate* isolate)> FromV8ValueCallback;
+ v8::Local<v8::Value>, v8::Isolate* isolate)> FromV8ValueCallback;
virtual ~Strategy() {}
@@ -37,7 +37,7 @@ class CONTENT_EXPORT V8ValueConverter {
// behavior.
// Use |callback| to convert any child values, as this will retain
// the ValueConverter's internal checks for depth and cycles.
- virtual bool FromV8Object(v8::Handle<v8::Object> value,
+ virtual bool FromV8Object(v8::Local<v8::Object> value,
base::Value** out,
v8::Isolate* isolate,
const FromV8ValueCallback& callback) const;
@@ -46,7 +46,7 @@ class CONTENT_EXPORT V8ValueConverter {
// behavior.
// Use |callback| to convert any child values, as this will retain
// the ValueConverter's internal checks for depth and cycles.
- virtual bool FromV8Array(v8::Handle<v8::Array> value,
+ virtual bool FromV8Array(v8::Local<v8::Array> value,
base::Value** out,
v8::Isolate* isolate,
const FromV8ValueCallback& callback) const;
@@ -54,14 +54,14 @@ class CONTENT_EXPORT V8ValueConverter {
// If false is returned, V8ValueConverter proceeds with the default
// behavior. v8::Object is passed as ArrayBuffer and ArrayBufferView
// classes are siblings.
- virtual bool FromV8ArrayBuffer(v8::Handle<v8::Object> value,
+ virtual bool FromV8ArrayBuffer(v8::Local<v8::Object> value,
base::Value** out,
v8::Isolate* isolate) const;
// If false is returned, V8ValueConverter proceeds with the default
// behavior. This allows to intercept "non-finite" values and do something
// with them.
- virtual bool FromV8Number(v8::Handle<v8::Number> value,
+ virtual bool FromV8Number(v8::Local<v8::Number> value,
base::Value** out) const;
// If false is returned, V8ValueConverter proceeds with the default
@@ -105,9 +105,9 @@ class CONTENT_EXPORT V8ValueConverter {
// Unsupported types are replaced with null. If an array or object throws
// while setting a value, that property or item is skipped, leaving a hole in
// the case of arrays.
- virtual v8::Handle<v8::Value> ToV8Value(
+ virtual v8::Local<v8::Value> ToV8Value(
const base::Value* value,
- v8::Handle<v8::Context> context) const = 0;
+ v8::Local<v8::Context> context) const = 0;
// Converts a v8::Value to base::Value.
//
@@ -118,8 +118,8 @@ class CONTENT_EXPORT V8ValueConverter {
// Likewise, if an object throws while converting a property it will not be
// converted, whereas if an array throws while converting an item it will be
// converted to Value(TYPE_NULL).
- virtual base::Value* FromV8Value(v8::Handle<v8::Value> value,
- v8::Handle<v8::Context> context) const = 0;
+ virtual base::Value* FromV8Value(v8::Local<v8::Value> value,
+ v8::Local<v8::Context> context) const = 0;
};
} // namespace content
« no previous file with comments | « content/child/webmessageportchannel_impl.cc ('k') | content/public/renderer/render_frame_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698