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

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

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
Index: mojo/services/surfaces/surfaces_service_application.cc
diff --git a/mojo/services/surfaces/surfaces_service_application.cc b/mojo/services/surfaces/surfaces_service_application.cc
index 9c9e3f857fca0f1803c26f557f5aee87a57c6a04..0bc440b73700bb85f1a420e3d1a3e725e3a2a68d 100644
--- a/mojo/services/surfaces/surfaces_service_application.cc
+++ b/mojo/services/surfaces/surfaces_service_application.cc
@@ -18,16 +18,14 @@ SurfacesServiceApplication::~SurfacesServiceApplication() {
bool SurfacesServiceApplication::ConfigureIncomingConnection(
ApplicationConnection* connection) {
- connection->AddService<SurfacesImpl, SurfacesImpl::Context>(this);
+ connection->AddService(this);
return true;
}
-cc::SurfaceManager* SurfacesServiceApplication::Manager() {
- return &manager_;
-}
-
-uint32_t SurfacesServiceApplication::IdNamespace() {
- return next_id_namespace_++;
+void SurfacesServiceApplication::Create(ApplicationConnection* connection,
+ InterfaceRequest<Surface> request) {
+ BindToRequest(new SurfacesImpl(&manager_, next_id_namespace_++, this),
+ &request);
}
void SurfacesServiceApplication::FrameSubmitted() {
« no previous file with comments | « mojo/services/surfaces/surfaces_service_application.h ('k') | mojo/services/test_service/test_request_tracker_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698