Chromium Code Reviews| 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 |