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

Side by Side Diff: Source/web/FrameLoaderClientImpl.h

Issue 26434002: Cleanup: Add more conversion helpers for usage. (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
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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698