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

Unified Diff: sky/engine/core/frame/FrameHost.h

Issue 696733003: Introduce blink::ServiceProvider (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 | « no previous file | sky/engine/core/frame/FrameHost.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/frame/FrameHost.h
diff --git a/sky/engine/core/frame/FrameHost.h b/sky/engine/core/frame/FrameHost.h
index f82aa6e6af3277f4cd45c9802a6028558d8c147f..f30f392720cd68e9b5c954669d7de0cc44281a89 100644
--- a/sky/engine/core/frame/FrameHost.h
+++ b/sky/engine/core/frame/FrameHost.h
@@ -42,6 +42,7 @@ namespace blink {
class Chrome;
class EventHandlerRegistry;
class Page;
+class ServiceProvider;
class Settings;
class UseCounter;
class Visitor;
@@ -58,7 +59,7 @@ class Visitor;
class FrameHost final : public DummyBase<FrameHost> {
WTF_MAKE_NONCOPYABLE(FrameHost); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
- static PassOwnPtr<FrameHost> create(Page&);
+ static PassOwnPtr<FrameHost> create(Page&, ServiceProvider*);
~FrameHost();
// Careful: This function will eventually be removed.
@@ -67,6 +68,8 @@ public:
Chrome& chrome() const;
UseCounter& useCounter() const;
+ ServiceProvider* services() const { return m_services; }
eseidel 2014/10/31 17:48:57 Why poitner?
+
// Corresponds to pixel density of the device where this Page is
// being displayed. In multi-monitor setups this can vary between pages.
// This value does not account for Page zoom, use LocalFrame::devicePixelRatio instead.
@@ -77,9 +80,10 @@ public:
void trace(Visitor*);
private:
- explicit FrameHost(Page&);
+ FrameHost(Page&, ServiceProvider*);
RawPtr<Page> m_page;
+ ServiceProvider* m_services;
const OwnPtr<EventHandlerRegistry> m_eventHandlerRegistry;
};
« no previous file with comments | « no previous file | sky/engine/core/frame/FrameHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698