Chromium Code Reviews| Index: Source/web/WebHelperPluginImpl.h |
| diff --git a/Source/web/WebHelperPluginImpl.h b/Source/web/WebHelperPluginImpl.h |
| index d7ed9d3ebabd36b7437235991530e3ad8c70ed5a..93cccda241b86f4a5fc83059eab49bbc2d416e3c 100644 |
| --- a/Source/web/WebHelperPluginImpl.h |
| +++ b/Source/web/WebHelperPluginImpl.h |
| @@ -72,6 +72,7 @@ private: |
| virtual void layout() OVERRIDE; |
| virtual void setFocus(bool) OVERRIDE; |
| virtual void close() OVERRIDE; |
| + virtual bool isHelperPlugin() const OVERRIDE { return true; } |
| WebWidgetClient* m_widgetClient; |
| WebViewImpl* m_webView; |
| @@ -83,6 +84,12 @@ private: |
| friend class HelperPluginChromeClient; |
| }; |
| +inline WebHelperPluginImpl* toWebHelperPluginImpl(WebWidget* widget) |
| +{ |
| + ASSERT_WITH_SECURITY_IMPLICATION(widget && widget->isHelperPlugin()); |
|
tkent
2013/10/08 05:24:04
should accept null widget for consistency.
|
| + return static_cast<WebHelperPluginImpl*>(widget); |
| +} |
| + |
| } // namespace WebKit |
| #endif // WebHelperPluginImpl_h |