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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.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: Created 4 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/web/WebLocalFrameImpl.h
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.h b/third_party/WebKit/Source/web/WebLocalFrameImpl.h
index a1368f5fbe41e419dc1921d4cf2bae2cdb839dfc..61ba372da875e7160f035dc6e78db8c7d576aa51 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.h
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.h
@@ -52,6 +52,7 @@ class GeolocationClientProxy;
class IntSize;
class KURL;
class Range;
+class ServiceRegistry;
class SharedWorkerRepositoryClientImpl;
class TextFinder;
class WebAutofillClient;
@@ -261,8 +262,8 @@ public:
void willBeDetached();
void willDetachParent();
- static WebLocalFrameImpl* create(WebTreeScopeType, WebFrameClient*, WebFrame* opener);
- static WebLocalFrameImpl* createProvisional(WebFrameClient*, WebRemoteFrame*, WebSandboxFlags, const WebFrameOwnerProperties&);
+ static WebLocalFrameImpl* create(WebTreeScopeType, WebFrameClient*, WebFrame* opener, ServiceRegistry*);
+ static WebLocalFrameImpl* createProvisional(WebFrameClient*, WebRemoteFrame*, WebSandboxFlags, const WebFrameOwnerProperties&, ServiceRegistry*);
~WebLocalFrameImpl() override;
PassRefPtrWillBeRawPtr<LocalFrame> createChildFrame(const FrameLoadRequest&, const AtomicString& name, HTMLFrameOwnerElement*);
@@ -351,8 +352,8 @@ public:
private:
friend class FrameLoaderClientImpl;
- WebLocalFrameImpl(WebTreeScopeType, WebFrameClient*);
- WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*);
+ WebLocalFrameImpl(WebTreeScopeType, WebFrameClient*, ServiceRegistry*);
+ WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*, ServiceRegistry*);
// Inherited from WebFrame, but intentionally hidden: it never makes sense
// to call these on a WebLocalFrameImpl.
@@ -405,6 +406,8 @@ private:
HashMap<AtomicString, OwnPtr<WebTestInterfaceFactory>> m_testInterfaces;
+ ServiceRegistry* const m_serviceRegistry;
+
#if ENABLE(OILPAN)
// Oilpan: WebLocalFrameImpl must remain alive until close() is called.
// Accomplish that by keeping a self-referential Persistent<>. It is

Powered by Google App Engine
This is Rietveld 408576698