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

Unified Diff: mojo/services/surfaces/surfaces_service_application.h

Issue 380413003: Mojo: Use InterfaceFactory<Interface> for service registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix network_service_loader Created 6 years, 5 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 | « mojo/services/surfaces/surfaces_impl.cc ('k') | mojo/services/surfaces/surfaces_service_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/surfaces/surfaces_service_application.h
diff --git a/mojo/services/surfaces/surfaces_service_application.h b/mojo/services/surfaces/surfaces_service_application.h
index ac6820dc400a6a323de5ba89d15d57fc9360757e..75ca540ac7e07ba8212cce55e19209869dbe5652 100644
--- a/mojo/services/surfaces/surfaces_service_application.h
+++ b/mojo/services/surfaces/surfaces_service_application.h
@@ -16,7 +16,8 @@ class ApplicationConnection;
namespace surfaces {
class SurfacesServiceApplication : public ApplicationDelegate,
- public SurfacesImpl::Context {
+ public InterfaceFactory<Surface>,
+ public SurfacesImpl::Client {
public:
SurfacesServiceApplication();
virtual ~SurfacesServiceApplication();
@@ -25,9 +26,11 @@ class SurfacesServiceApplication : public ApplicationDelegate,
virtual bool ConfigureIncomingConnection(
ApplicationConnection* connection) OVERRIDE;
- // SurfacesImpl::Context implementation.
- virtual cc::SurfaceManager* Manager() OVERRIDE;
- virtual uint32_t IdNamespace() OVERRIDE;
+ // InterfaceFactory<Surface> implementation.
+ virtual void Create(ApplicationConnection* connection,
+ InterfaceRequest<Surface> request) OVERRIDE;
+
+ // SurfacesImpl::Client implementation.
virtual void FrameSubmitted() OVERRIDE;
virtual void SetDisplay(cc::Display*) OVERRIDE;
« no previous file with comments | « mojo/services/surfaces/surfaces_impl.cc ('k') | mojo/services/surfaces/surfaces_service_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698