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

Unified Diff: mojo/services/test_service/test_request_tracker_application.h

Issue 718473003: Add mojo::Binding<Interface> for more flexible pipe<->impl binding (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rename Binding::router() -> Binding::internal_router() Created 6 years, 1 month 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/test_service/test_request_tracker_application.h
diff --git a/mojo/services/test_service/test_request_tracker_application.h b/mojo/services/test_service/test_request_tracker_application.h
index 699eefd4aea483c0d444aa74b743acb8b20490aa..71371c069b37282c0eb026259c6b6d4c9973efe9 100644
--- a/mojo/services/test_service/test_request_tracker_application.h
+++ b/mojo/services/test_service/test_request_tracker_application.h
@@ -15,8 +15,10 @@ namespace test {
class TestTimeService;
// Embeds TestRequestTracker mojo services into an application.
-class TestRequestTrackerApplication : public ApplicationDelegate,
- public InterfaceFactory<TestTimeService> {
+class TestRequestTrackerApplication
+ : public ApplicationDelegate,
+ public InterfaceFactory<TestTimeService>,
+ public InterfaceFactory<TestRequestTracker> {
public:
TestRequestTrackerApplication();
~TestRequestTrackerApplication() override;
@@ -28,16 +30,16 @@ class TestRequestTrackerApplication : public ApplicationDelegate,
void Create(ApplicationConnection* connection,
InterfaceRequest<TestTimeService> request) override;
+ // InterfaceFactory<TestRequestTracker> methods:
+ void Create(ApplicationConnection* connection,
+ InterfaceRequest<TestRequestTracker> request) override;
+
private:
TrackingContext context_;
typedef InterfaceFactoryImplWithContext<TestTrackedRequestServiceImpl,
TrackingContext>
TestTrackedRequestFactory;
TestTrackedRequestFactory test_tracked_request_factory_;
- typedef InterfaceFactoryImplWithContext<TestRequestTrackerImpl,
- TrackingContext>
- TestRequestTrackerFactory;
- TestRequestTrackerFactory test_request_tracker_factory_;
MOJO_DISALLOW_COPY_AND_ASSIGN(TestRequestTrackerApplication);
};

Powered by Google App Engine
This is Rietveld 408576698