Index: Source/web/FrameLoaderClientImpl.h |
diff --git a/Source/web/FrameLoaderClientImpl.h b/Source/web/FrameLoaderClientImpl.h |
index 945c8c38fa317bb3d993a806a927c1a09cab9665..f621f3cad8806eb3a336167d417f0c5b8010eed2 100644 |
--- a/Source/web/FrameLoaderClientImpl.h |
+++ b/Source/web/FrameLoaderClientImpl.h |
@@ -156,6 +156,8 @@ public: |
virtual void didStopAllLoaders() OVERRIDE; |
private: |
+ virtual bool isFrameLoaderClient() const OVERRIDE { return true; } |
+ |
PassOwnPtr<WebPluginLoadObserver> pluginLoadObserver(); |
// The WebFrame that owns this object and manages its lifetime. Therefore, |
@@ -163,6 +165,12 @@ private: |
WebFrameImpl* m_webFrame; |
}; |
+inline FrameLoaderClientImpl* toFrameLoaderClientImpl(WebCore::FrameLoaderClient* client) |
+{ |
+ ASSERT_WITH_SECURITY_IMPLICATION(!client || client->isFrameLoaderClient()); |
tkent
2013/10/08 22:22:39
Is there FrameLoaderClient implementations other t
|
+ return static_cast<FrameLoaderClientImpl*>(client); |
+} |
+ |
} // namespace WebKit |
#endif |