diff options
Diffstat (limited to 'chrome/renderer/extensions/bindings_utils.h')
-rwxr-xr-x | chrome/renderer/extensions/bindings_utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/renderer/extensions/bindings_utils.h b/chrome/renderer/extensions/bindings_utils.h index 9e7d213..84fb32f 100755 --- a/chrome/renderer/extensions/bindings_utils.h +++ b/chrome/renderer/extensions/bindings_utils.h @@ -10,6 +10,8 @@ #include <string> +class RenderView; + template<int kResourceId> struct StringResourceTemplate { StringResourceTemplate() @@ -25,4 +27,8 @@ const char* GetStringResource() { Singleton< StringResourceTemplate<kResourceId> >::get()->resource.c_str(); } +// Returns the active RenderView, based on which V8 context is active. It is +// an error to call this when not in a V8 context. +RenderView* GetActiveRenderView(); + #endif // CHROME_RENDERER_EXTENSIONS_BINDINGS_UTILS_H_ |