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 54921de18f718f9eb5b0d15b15b6506cf7cccc34..0edb765029f966ed511b1ae5931cebe9c4a6642d 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalFrame.h |
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.h |
@@ -70,6 +70,7 @@ class Range; |
class LayoutView; |
class TreeScope; |
class ScriptController; |
+class ServiceRegistry; |
class SpellChecker; |
class TreeScope; |
class WebFrameHostScheduler; |
@@ -79,7 +80,7 @@ template <typename Strategy> class PositionWithAffinityTemplate; |
class CORE_EXPORT LocalFrame : public Frame, public LocalFrameLifecycleNotifier, public WillBeHeapSupplementable<LocalFrame>, public DisplayItemClient { |
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); |
public: |
- static PassRefPtrWillBeRawPtr<LocalFrame> create(FrameLoaderClient*, FrameHost*, FrameOwner*); |
+ static PassRefPtrWillBeRawPtr<LocalFrame> create(FrameLoaderClient*, FrameHost*, FrameOwner*, ServiceRegistry*); |
void init(); |
void setView(PassRefPtrWillBeRawPtr<FrameView>); |
@@ -187,10 +188,12 @@ public: |
bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } |
+ ServiceRegistry* serviceRegistry() { return m_serviceRegistry; } |
+ |
private: |
friend class FrameNavigationDisabler; |
- LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*); |
+ LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*, ServiceRegistry*); |
bool shouldScrollTopControls(ScrollGranularity, const FloatSize& delta) const; |
@@ -227,6 +230,8 @@ private: |
bool m_inViewSourceMode; |
RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
+ |
+ ServiceRegistry* const m_serviceRegistry; |
}; |
inline void LocalFrame::init() |