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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/LocalFrame.h
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.h b/third_party/WebKit/Source/core/frame/LocalFrame.h
index 5f274e82dce30ae1a338a1b2157b0bb956726ca4..ffdc915e996a05cd0c630c69fb9899db54c03c4e 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.h
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.h
@@ -227,6 +227,13 @@ class CORE_EXPORT LocalFrame final : public Frame,
sashab 2017/03/29 00:33:23 In CL description: removed -> remove
slangley 2017/03/29 02:27:08 Done
PerformanceMonitor* performanceMonitor() { return m_performanceMonitor; }
+ using frame_init_callback = void (*)(LocalFrame*);
+ // Allows for the registration of a callback that is invoked whenever a new
+ // LocalFrame is initilized. Callbacks are executed in the order that they
+ // 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
+ // for adding a callback multiple times.
+ static void registerInitializationCallback(frame_init_callback);
+
private:
friend class FrameNavigationDisabler;
@@ -277,10 +284,6 @@ class CORE_EXPORT LocalFrame final : public Frame,
InterfaceRegistry* const m_interfaceRegistry;
};
-inline void LocalFrame::init() {
- m_loader.init();
-}
-
inline FrameLoader& LocalFrame::loader() const {
return m_loader;
}

Powered by Google App Engine
This is Rietveld 408576698