Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 156 virtual void didStopAllLoaders() OVERRIDE; | 156 virtual void didStopAllLoaders() OVERRIDE; |
| 157 | 157 |
| 158 private: | 158 private: |
| 159 PassOwnPtr<WebPluginLoadObserver> pluginLoadObserver(); | 159 PassOwnPtr<WebPluginLoadObserver> pluginLoadObserver(); |
| 160 | 160 |
| 161 // The WebFrame that owns this object and manages its lifetime. Therefore, | 161 // The WebFrame that owns this object and manages its lifetime. Therefore, |
| 162 // the web frame object is guaranteed to exist. | 162 // the web frame object is guaranteed to exist. |
| 163 WebFrameImpl* m_webFrame; | 163 WebFrameImpl* m_webFrame; |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 inline FrameLoaderClientImpl* toFrameLoaderClientImpl(WebCore::FrameLoaderClient * client) | |
| 167 { | |
| 168 // We need not check for type of FrameLoaderClient since FrameLoaderClientIm pl | |
| 169 // is the only derived class of FrameLoaderClient. | |
| 170 ASSERT_WITH_SECURITY_IMPLICATION(!client); | |
|
tkent
2013/10/08 05:24:04
Null pointer has no security implication.
Please d
| |
| 171 return static_cast<FrameLoaderClientImpl*>(client); | |
| 172 } | |
| 173 | |
| 166 } // namespace WebKit | 174 } // namespace WebKit |
| 167 | 175 |
| 168 #endif | 176 #endif |
| OLD | NEW |