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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 virtual bool allowWebGL(bool enabledPerSettings) OVERRIDE; | 149 virtual bool allowWebGL(bool enabledPerSettings) OVERRIDE; |
150 virtual void didLoseWebGLContext(int arbRobustnessContextLostReason) OVERRID
E; | 150 virtual void didLoseWebGLContext(int arbRobustnessContextLostReason) OVERRID
E; |
151 | 151 |
152 virtual void dispatchWillInsertBody() OVERRIDE; | 152 virtual void dispatchWillInsertBody() OVERRIDE; |
153 | 153 |
154 virtual WebServiceWorkerRegistry* serviceWorkerRegistry() OVERRIDE; | 154 virtual WebServiceWorkerRegistry* serviceWorkerRegistry() OVERRIDE; |
155 | 155 |
156 virtual void didStopAllLoaders() OVERRIDE; | 156 virtual void didStopAllLoaders() OVERRIDE; |
157 | 157 |
158 private: | 158 private: |
| 159 virtual bool isFrameLoaderClientImpl() const OVERRIDE { return true; } |
| 160 |
159 PassOwnPtr<WebPluginLoadObserver> pluginLoadObserver(); | 161 PassOwnPtr<WebPluginLoadObserver> pluginLoadObserver(); |
160 | 162 |
161 // The WebFrame that owns this object and manages its lifetime. Therefore, | 163 // The WebFrame that owns this object and manages its lifetime. Therefore, |
162 // the web frame object is guaranteed to exist. | 164 // the web frame object is guaranteed to exist. |
163 WebFrameImpl* m_webFrame; | 165 WebFrameImpl* m_webFrame; |
164 }; | 166 }; |
165 | 167 |
| 168 inline FrameLoaderClientImpl* toFrameLoaderClientImpl(WebCore::FrameLoaderClient
* client) |
| 169 { |
| 170 ASSERT_WITH_SECURITY_IMPLICATION(!client || client->isFrameLoaderClientImpl(
)); |
| 171 return static_cast<FrameLoaderClientImpl*>(client); |
| 172 } |
| 173 |
166 } // namespace WebKit | 174 } // namespace WebKit |
167 | 175 |
168 #endif | 176 #endif |
OLD | NEW |