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

Unified Diff: services/test_service/test_time_service_impl.h

Issue 2004493002: Add a mojo::RunApplication() for running implementations of ApplicationImplBase. (Closed) Base URL: https://github.com/domokit/mojo.git@work790_environment_no_instantiate
Patch Set: rebased Created 4 years, 7 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 | « services/test_service/test_service_impl.cc ('k') | services/test_service/test_time_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/test_service/test_time_service_impl.h
diff --git a/services/test_service/test_time_service_impl.h b/services/test_service/test_time_service_impl.h
index 5ca569bc7c671387e06c589e87c71b9b734b7f6f..27a028f6ce10745876ac60e206e452fb11f70ad1 100644
--- a/services/test_service/test_time_service_impl.h
+++ b/services/test_service/test_time_service_impl.h
@@ -12,13 +12,16 @@
#include "services/test_service/test_service.mojom.h"
namespace mojo {
+
+class ApplicationImplBase;
+
namespace test {
class TrackedService;
class TestTimeServiceImpl : public TestTimeService {
public:
- TestTimeServiceImpl(ApplicationImpl* app_impl,
+ TestTimeServiceImpl(ApplicationImplBase* application,
InterfaceRequest<TestTimeService> request);
~TestTimeServiceImpl() override;
@@ -28,7 +31,7 @@ class TestTimeServiceImpl : public TestTimeService {
void StartTrackingRequests(const mojo::Callback<void()>& callback) override;
private:
- ApplicationImpl* app_impl_;
+ ApplicationImplBase* const application_;
scoped_ptr<TrackedService> tracking_;
StrongBinding<TestTimeService> binding_;
MOJO_DISALLOW_COPY_AND_ASSIGN(TestTimeServiceImpl);
« no previous file with comments | « services/test_service/test_service_impl.cc ('k') | services/test_service/test_time_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698