| 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 dba90aa780a8be427c47900f42ab5af304a4e9a3..4b46fdbd9cab6a1ea09e614ea4593a267100ae88 100644
|
| --- a/content/renderer/pepper/pepper_try_catch.h
|
| +++ b/content/renderer/pepper/pepper_try_catch.h
|
| @@ -25,8 +25,8 @@ class CONTENT_EXPORT PepperTryCatch {
|
|
|
| virtual void SetException(const char* message) = 0;
|
| virtual bool HasException() = 0;
|
| - // Gets the plugin context. Virtual so it can be overriden for testing.
|
| - virtual v8::Handle<v8::Context> GetContext();
|
| + // Gets the context to execute scripts in.
|
| + virtual v8::Handle<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.
|
| @@ -57,6 +57,7 @@ class PepperTryCatchV8 : public PepperTryCatch {
|
| // PepperTryCatch
|
| virtual void SetException(const char* message) OVERRIDE;
|
| virtual bool HasException() OVERRIDE;
|
| + virtual v8::Handle<v8::Context> GetContext() OVERRIDE;
|
|
|
| private:
|
| PP_Var exception_;
|
| @@ -77,6 +78,7 @@ class PepperTryCatchVar : public PepperTryCatch {
|
| // PepperTryCatch
|
| virtual void SetException(const char* message) OVERRIDE;
|
| virtual bool HasException() OVERRIDE;
|
| + virtual v8::Handle<v8::Context> GetContext() OVERRIDE;
|
|
|
| private:
|
| // Code which uses PepperTryCatchVar doesn't typically have a HandleScope,
|
|
|