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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.h

Issue 2783543004: Move registration of LocalFrame mojo interfaces to ModulesInitializer. (Closed)
Patch Set: Remove unused headers. Created 3 years, 8 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) 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 void scheduleVisualUpdateUnlessThrottled(); 217 void scheduleVisualUpdateUnlessThrottled();
218 218
219 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } 219 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; }
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
sashab 2017/03/29 00:33:23 In CL description: removed -> remove
slangley 2017/03/29 02:27:08 Done
228 PerformanceMonitor* performanceMonitor() { return m_performanceMonitor; } 228 PerformanceMonitor* performanceMonitor() { return m_performanceMonitor; }
229 229
230 using frame_init_callback = 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
233 // were added using registerInitializationCallback, and there is no checks
sashab 2017/03/29 00:33:23 is -> are
slangley 2017/03/29 02:27:08 Done
234 // for adding a callback multiple times.
235 static void registerInitializationCallback(frame_init_callback);
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698