| Index: webkit/glue/webframe.h
|
| diff --git a/webkit/glue/webframe.h b/webkit/glue/webframe.h
|
| index 1a6ae347cc71b7c4894ff58de431b438f58f63ab..90ba5a3a41e241b1bd968fb2fa6508262e549482 100644
|
| --- a/webkit/glue/webframe.h
|
| +++ b/webkit/glue/webframe.h
|
| @@ -11,6 +11,7 @@
|
| #include "base/string16.h"
|
| #include "skia/ext/bitmap_platform_device.h"
|
| #include "skia/ext/platform_canvas.h"
|
| +#include "webkit/api/public/WebCommon.h"
|
|
|
| class GURL;
|
| class WebAppCacheContext;
|
| @@ -31,6 +32,13 @@ struct WebSize;
|
| struct WebURLError;
|
| }
|
|
|
| +#if WEBKIT_USING_V8
|
| +namespace v8 {
|
| + template <class T> class Local;
|
| + class Context;
|
| +}
|
| +#endif
|
| +
|
| // Every frame in a web page is represented by one WebFrame, including the
|
| // outermost frame.
|
| class WebFrame {
|
| @@ -70,6 +78,12 @@ class WebFrame {
|
|
|
| virtual NPObject* GetWindowNPObject() = 0;
|
|
|
| +#if WEBKIT_USING_V8
|
| + // Returns the V8 context for this frame, or an empty handle if there is
|
| + // none.
|
| + virtual v8::Local<v8::Context> GetScriptContext() = 0;
|
| +#endif
|
| +
|
| // Loads the given WebURLRequest.
|
| virtual void LoadRequest(const WebKit::WebURLRequest& request) = 0;
|
|
|
|
|