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

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

Issue 2401333002: Add a blink InterfaceRegistry. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.h ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('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.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index 31dccf7ce79d4712ffe1406454109bdc41eb5dda..cd6d4dd5a27b0d60d7c7d0035e20992e4d6cf99d 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -85,6 +85,7 @@
#include "platform/plugins/PluginData.h"
#include "platform/text/TextStream.h"
#include "public/platform/InterfaceProvider.h"
+#include "public/platform/InterfaceRegistry.h"
#include "public/platform/WebFrameScheduler.h"
#include "public/platform/WebScreenInfo.h"
#include "public/platform/WebViewScheduler.h"
@@ -246,11 +247,14 @@ template class CORE_TEMPLATE_EXPORT Supplement<LocalFrame>;
LocalFrame* LocalFrame::create(FrameLoaderClient* client,
FrameHost* host,
FrameOwner* owner,
- InterfaceProvider* interfaceProvider) {
+ InterfaceProvider* interfaceProvider,
+ InterfaceRegistry* interfaceRegistry) {
LocalFrame* frame = new LocalFrame(
client, host, owner,
interfaceProvider ? interfaceProvider
- : InterfaceProvider::getEmptyInterfaceProvider());
+ : InterfaceProvider::getEmptyInterfaceProvider(),
+ interfaceRegistry ? interfaceRegistry
+ : InterfaceRegistry::getEmptyInterfaceRegistry());
InspectorInstrumentation::frameAttachedToParent(frame);
return frame;
}
@@ -838,7 +842,8 @@ bool LocalFrame::shouldThrottleRendering() const {
inline LocalFrame::LocalFrame(FrameLoaderClient* client,
FrameHost* host,
FrameOwner* owner,
- InterfaceProvider* interfaceProvider)
+ InterfaceProvider* interfaceProvider,
+ InterfaceRegistry* interfaceRegistry)
: Frame(client, host, owner),
m_frameScheduler(page()->chromeClient().createFrameScheduler(
client->frameBlameContext())),
@@ -855,7 +860,8 @@ inline LocalFrame::LocalFrame(FrameLoaderClient* client,
m_pageZoomFactor(parentPageZoomFactor(this)),
m_textZoomFactor(parentTextZoomFactor(this)),
m_inViewSourceMode(false),
- m_interfaceProvider(interfaceProvider) {
+ m_interfaceProvider(interfaceProvider),
+ m_interfaceRegistry(interfaceRegistry) {
if (isLocalRoot())
m_instrumentingAgents = new InstrumentingAgents();
else
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.h ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698