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

Unified Diff: Source/web/WebDataSourceImpl.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
Index: Source/web/WebDataSourceImpl.h
diff --git a/Source/web/WebDataSourceImpl.h b/Source/web/WebDataSourceImpl.h
index 2c4cd8075122077894e03f3bbb3a6c7d21ba6c4c..8100ed47f39774f1c63409558c17bec19eb5fdb4 100644
--- a/Source/web/WebDataSourceImpl.h
+++ b/Source/web/WebDataSourceImpl.h
@@ -91,6 +91,13 @@ private:
OwnPtr<WebPluginLoadObserver> m_pluginLoadObserver;
};
+inline WebDataSourceImpl* toWebDataSourceImpl(WebDataSource* source)
+{
+ // WebDataSourceImpl is the only implementation of WebDataView, so
+ // no further checking required.
+ return static_cast<WebDataSourceImpl*>(source);
+}
+
} // namespace WebKit
#endif // WebDataSourceImpl_h

Powered by Google App Engine
This is Rietveld 408576698