Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999-2001 Lars Knoll <knoll@kde.org> | 3 * 1999-2001 Lars Knoll <knoll@kde.org> |
| 4 * 1999-2001 Antti Koivisto <koivisto@kde.org> | 4 * 1999-2001 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000-2001 Simon Hausmann <hausmann@kde.org> | 5 * 2000-2001 Simon Hausmann <hausmann@kde.org> |
| 6 * 2000-2001 Dirk Mueller <mueller@kde.org> | 6 * 2000-2001 Dirk Mueller <mueller@kde.org> |
| 7 * 2000 Stefan Schimanski <1Stein@gmx.de> | 7 * 2000 Stefan Schimanski <1Stein@gmx.de> |
| 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
| 9 * reserved. | 9 * reserved. |
| 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 220 | 220 |
| 221 InterfaceProvider* interfaceProvider() { return m_interfaceProvider; } | 221 InterfaceProvider* interfaceProvider() { return m_interfaceProvider; } |
| 222 InterfaceRegistry* interfaceRegistry() { return m_interfaceRegistry; } | 222 InterfaceRegistry* interfaceRegistry() { return m_interfaceRegistry; } |
| 223 | 223 |
| 224 LocalFrameClient* client() const; | 224 LocalFrameClient* client() const; |
| 225 | 225 |
| 226 PluginData* pluginData() const; | 226 PluginData* pluginData() const; |
| 227 | 227 |
| 228 PerformanceMonitor* performanceMonitor() { return m_performanceMonitor; } | 228 PerformanceMonitor* performanceMonitor() { return m_performanceMonitor; } |
| 229 | 229 |
| 230 using FrameInitCallback = void (*)(LocalFrame*); | |
| 231 // Allows for the registration of a callback that is invoked whenever a new | |
| 232 // LocalFrame is initilized. Callbacks are executed in the order that they | |
|
haraken
2017/03/29 08:10:24
initialized
slangley
2017/03/29 23:09:38
Done
| |
| 233 // were added using registerInitializationCallback, and there are no checks | |
| 234 // for adding a callback multiple times. | |
| 235 static void registerInitializationCallback(FrameInitCallback); | |
| 236 | |
| 230 private: | 237 private: |
| 231 friend class FrameNavigationDisabler; | 238 friend class FrameNavigationDisabler; |
| 232 | 239 |
| 233 LocalFrame(LocalFrameClient*, | 240 LocalFrame(LocalFrameClient*, |
| 234 Page&, | 241 Page&, |
| 235 FrameOwner*, | 242 FrameOwner*, |
| 236 InterfaceProvider*, | 243 InterfaceProvider*, |
| 237 InterfaceRegistry*); | 244 InterfaceRegistry*); |
| 238 | 245 |
| 239 // Intentionally private to prevent redundant checks when the type is | 246 // Intentionally private to prevent redundant checks when the type is |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 270 | 277 |
| 271 bool m_inViewSourceMode; | 278 bool m_inViewSourceMode; |
| 272 | 279 |
| 273 Member<InspectorInstrumentationAgents> m_instrumentingAgents; | 280 Member<InspectorInstrumentationAgents> m_instrumentingAgents; |
| 274 Member<PerformanceMonitor> m_performanceMonitor; | 281 Member<PerformanceMonitor> m_performanceMonitor; |
| 275 | 282 |
| 276 InterfaceProvider* const m_interfaceProvider; | 283 InterfaceProvider* const m_interfaceProvider; |
| 277 InterfaceRegistry* const m_interfaceRegistry; | 284 InterfaceRegistry* const m_interfaceRegistry; |
| 278 }; | 285 }; |
| 279 | 286 |
| 280 inline void LocalFrame::init() { | |
| 281 m_loader.init(); | |
| 282 } | |
| 283 | |
| 284 inline FrameLoader& LocalFrame::loader() const { | 287 inline FrameLoader& LocalFrame::loader() const { |
| 285 return m_loader; | 288 return m_loader; |
| 286 } | 289 } |
| 287 | 290 |
| 288 inline NavigationScheduler& LocalFrame::navigationScheduler() const { | 291 inline NavigationScheduler& LocalFrame::navigationScheduler() const { |
| 289 ASSERT(m_navigationScheduler); | 292 ASSERT(m_navigationScheduler); |
| 290 return *m_navigationScheduler.get(); | 293 return *m_navigationScheduler.get(); |
| 291 } | 294 } |
| 292 | 295 |
| 293 inline FrameView* LocalFrame::view() const { | 296 inline FrameView* LocalFrame::view() const { |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 373 explicit ScopedFrameBlamer(LocalFrame*); | 376 explicit ScopedFrameBlamer(LocalFrame*); |
| 374 ~ScopedFrameBlamer(); | 377 ~ScopedFrameBlamer(); |
| 375 | 378 |
| 376 private: | 379 private: |
| 377 Member<LocalFrame> m_frame; | 380 Member<LocalFrame> m_frame; |
| 378 }; | 381 }; |
| 379 | 382 |
| 380 } // namespace blink | 383 } // namespace blink |
| 381 | 384 |
| 382 #endif // LocalFrame_h | 385 #endif // LocalFrame_h |
| OLD | NEW |