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

Unified Diff: content/renderer/pepper/pepper_try_catch.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/pepper_plugin_instance_impl.cc ('k') | content/renderer/pepper/pepper_try_catch.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_try_catch.h
diff --git a/content/renderer/pepper/pepper_try_catch.h b/content/renderer/pepper/pepper_try_catch.h
index 72d03bf928a831a28a07ed895bdcdccc8cdbe0d2..8dbbb9b51cc1c40d086768dcd8a06d927139444f 100644
--- a/content/renderer/pepper/pepper_try_catch.h
+++ b/content/renderer/pepper/pepper_try_catch.h
@@ -29,12 +29,12 @@ class CONTENT_EXPORT PepperTryCatch {
virtual void SetException(const char* message) = 0;
virtual bool HasException() = 0;
// Gets the context to execute scripts in.
- virtual v8::Handle<v8::Context> GetContext() = 0;
+ virtual v8::Local<v8::Context> GetContext() = 0;
// Convenience functions for doing conversions to/from V8 values and sets an
// exception if there is an error in the conversion.
- v8::Handle<v8::Value> ToV8(PP_Var var);
- ppapi::ScopedPPVar FromV8(v8::Handle<v8::Value> v8_value);
+ v8::Local<v8::Value> ToV8(PP_Var var);
+ ppapi::ScopedPPVar FromV8(v8::Local<v8::Value> v8_value);
protected:
// Make sure that |instance_| is alive for the lifetime of PepperTryCatch.
@@ -64,7 +64,7 @@ class PepperTryCatchV8 : public PepperTryCatch {
// PepperTryCatch
void SetException(const char* message) override;
bool HasException() override;
- v8::Handle<v8::Context> GetContext() override;
+ v8::Local<v8::Context> GetContext() override;
private:
PP_Var exception_;
@@ -86,14 +86,14 @@ class PepperTryCatchVar : public PepperTryCatch {
// PepperTryCatch
void SetException(const char* message) override;
bool HasException() override;
- v8::Handle<v8::Context> GetContext() override;
+ v8::Local<v8::Context> GetContext() override;
private:
// Code which uses PepperTryCatchVar doesn't typically have a HandleScope,
// make one for them. Note that this class is always allocated on the stack.
v8::HandleScope handle_scope_;
- v8::Handle<v8::Context> context_;
+ v8::Local<v8::Context> context_;
v8::TryCatch try_catch_;
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | content/renderer/pepper/pepper_try_catch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698