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

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

Issue 1830883002: Add blink::ServiceRegistry and expose it from LocalFrame and Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 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 447c6d8f217efe3cad25e36d6988ac2e4f44ec6e..c9c5cf97cf8b67e7d043179edca7ffbe11232ce9 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.h
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.h
@@ -71,6 +71,7 @@ class Range;
class LayoutView;
class TreeScope;
class ScriptController;
+class ServiceRegistry;
class SpellChecker;
class TreeScope;
class WebFrameHostScheduler;
@@ -80,7 +81,7 @@ template <typename Strategy> class PositionWithAffinityTemplate;
class CORE_EXPORT LocalFrame : public Frame, public LocalFrameLifecycleNotifier, public Supplementable<LocalFrame>, public DisplayItemClient {
USING_GARBAGE_COLLECTED_MIXIN(LocalFrame);
public:
- static RawPtr<LocalFrame> create(FrameLoaderClient*, FrameHost*, FrameOwner*);
+ static RawPtr<LocalFrame> create(FrameLoaderClient*, FrameHost*, FrameOwner*, ServiceRegistry*);
void init();
void setView(RawPtr<FrameView>);
@@ -189,10 +190,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;
@@ -229,6 +232,8 @@ private:
bool m_inViewSourceMode;
Member<InstrumentingAgents> m_instrumentingAgents;
+
+ ServiceRegistry* const m_serviceRegistry;
};
inline void LocalFrame::init()

Powered by Google App Engine
This is Rietveld 408576698