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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.h

Issue 2783543004: Move registration of LocalFrame mojo interfaces to ModulesInitializer. (Closed)
Patch Set: Move modules initialization to the first operation in LocalFrame::Init as the loader can actually d… 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a0a12f6489432f7551d1081512c52c2dfd8a6752..312fa068d07ada42e17b91d164d46c885a365b8c 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.h
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.h
@@ -225,6 +225,13 @@ class CORE_EXPORT LocalFrame final : public Frame,
PerformanceMonitor* performanceMonitor() { return m_performanceMonitor; }
+ using FrameInitCallback = void (*)(LocalFrame*);
+ // Allows for the registration of a callback that is invoked whenever a new
+ // LocalFrame is initialized. Callbacks are executed in the order that they
+ // were added using registerInitializationCallback, and there are no checks
+ // for adding a callback multiple times.
+ static void registerInitializationCallback(FrameInitCallback);
+
private:
friend class FrameNavigationDisabler;
@@ -275,10 +282,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;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698