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

Unified Diff: Source/web/FrameLoaderClientImpl.h

Issue 26434002: Cleanup: Add more conversion helpers for usage. (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
Index: Source/web/FrameLoaderClientImpl.h
diff --git a/Source/web/FrameLoaderClientImpl.h b/Source/web/FrameLoaderClientImpl.h
index 945c8c38fa317bb3d993a806a927c1a09cab9665..a4214285eaf01a52cd26cefde6226bcaf6bbe81d 100644
--- a/Source/web/FrameLoaderClientImpl.h
+++ b/Source/web/FrameLoaderClientImpl.h
@@ -163,6 +163,14 @@ private:
WebFrameImpl* m_webFrame;
};
+inline FrameLoaderClientImpl* toFrameLoaderClientImpl(WebCore::FrameLoaderClient* client)
+{
+ // We need not check for type of FrameLoaderClient since FrameLoaderClientImpl
+ // is the only derived class of FrameLoaderClient.
+ ASSERT_WITH_SECURITY_IMPLICATION(!client);
tkent 2013/10/08 05:24:04 Null pointer has no security implication. Please d
+ return static_cast<FrameLoaderClientImpl*>(client);
+}
+
} // namespace WebKit
#endif

Powered by Google App Engine
This is Rietveld 408576698