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

Unified Diff: content/renderer/pepper/resource_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/renderer/pepper/ppb_var_deprecated_impl.cc ('k') | content/renderer/pepper/resource_converter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/resource_converter.h
diff --git a/content/renderer/pepper/resource_converter.h b/content/renderer/pepper/resource_converter.h
index c46a10e96235ad0d3c175f6538790088fb3d7a12..2c20d7ee0ef2d8fcc65e09adab5c018419643511 100644
--- a/content/renderer/pepper/resource_converter.h
+++ b/content/renderer/pepper/resource_converter.h
@@ -48,8 +48,8 @@ class CONTENT_EXPORT ResourceConverter {
// On success, writes the resulting var to |result|, sets |was_resource| to
// true and returns true. If |val| is not a resource, sets |was_resource| to
// false and returns true. If an error occurs, returns false.
- virtual bool FromV8Value(v8::Handle<v8::Object> val,
- v8::Handle<v8::Context> context,
+ virtual bool FromV8Value(v8::Local<v8::Object> val,
+ v8::Local<v8::Context> context,
PP_Var* result,
bool* was_resource) = 0;
@@ -57,8 +57,8 @@ class CONTENT_EXPORT ResourceConverter {
// PP_VARTYPE_RESOURCE. On success, writes the resulting value to |result| and
// returns true. If an error occurs, returns false.
virtual bool ToV8Value(const PP_Var& var,
- v8::Handle<v8::Context> context,
- v8::Handle<v8::Value>* result) = 0;
+ v8::Local<v8::Context> context,
+ v8::Local<v8::Value>* result) = 0;
};
class ResourceConverterImpl : public ResourceConverter {
@@ -70,13 +70,13 @@ class ResourceConverterImpl : public ResourceConverter {
void Reset() override;
bool NeedsFlush() override;
void Flush(const base::Callback<void(bool)>& callback) override;
- bool FromV8Value(v8::Handle<v8::Object> val,
- v8::Handle<v8::Context> context,
+ bool FromV8Value(v8::Local<v8::Object> val,
+ v8::Local<v8::Context> context,
PP_Var* result,
bool* was_resource) override;
bool ToV8Value(const PP_Var& var,
- v8::Handle<v8::Context> context,
- v8::Handle<v8::Value>* result) override;
+ v8::Local<v8::Context> context,
+ v8::Local<v8::Value>* result) override;
private:
// Creates a resource var with the given |pending_renderer_id| and
« no previous file with comments | « content/renderer/pepper/ppb_var_deprecated_impl.cc ('k') | content/renderer/pepper/resource_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698