Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1999)

Unified Diff: Source/web/FrameLoaderClientImpl.h

Issue 26450004: Cleanup: Adding more conversion helper interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | Source/web/WebFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/FrameLoaderClientImpl.h
diff --git a/Source/web/FrameLoaderClientImpl.h b/Source/web/FrameLoaderClientImpl.h
index 945c8c38fa317bb3d993a806a927c1a09cab9665..4664dd29d99f1caff6ee34ec674bf423e8aa05ed 100644
--- a/Source/web/FrameLoaderClientImpl.h
+++ b/Source/web/FrameLoaderClientImpl.h
@@ -156,6 +156,8 @@ public:
virtual void didStopAllLoaders() OVERRIDE;
private:
+ virtual bool isFrameLoaderClientImpl() 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->isFrameLoaderClientImpl());
+ return static_cast<FrameLoaderClientImpl*>(client);
+}
+
} // namespace WebKit
#endif
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | Source/web/WebFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698