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

Unified Diff: Source/web/WebDataSourceImpl.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/WebDataSourceImpl.h
diff --git a/Source/web/WebDataSourceImpl.h b/Source/web/WebDataSourceImpl.h
index 2c4cd8075122077894e03f3bbb3a6c7d21ba6c4c..f1f137fc1907a714a09d2e4582ebab5501cff481 100644
--- a/Source/web/WebDataSourceImpl.h
+++ b/Source/web/WebDataSourceImpl.h
@@ -91,6 +91,12 @@ private:
OwnPtr<WebPluginLoadObserver> m_pluginLoadObserver;
};
+inline WebDataSourceImpl* toWebDataSourceImpl(WebDataSource* source)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!source);
tkent 2013/10/08 05:24:04 Null pointer has no security implication. Please d
+ return static_cast<WebDataSourceImpl*>(source);
+}
+
} // namespace WebKit
#endif // WebDataSourceImpl_h

Powered by Google App Engine
This is Rietveld 408576698