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

Side by Side Diff: Source/web/FrameLoaderClientImpl.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 unified diff | Download patch
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | Source/web/WebFrameImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | Source/web/WebFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698