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

Unified Diff: services/test_service/test_service_application.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
Index: services/test_service/test_service_application.h
diff --git a/services/test_service/test_service_application.h b/services/test_service/test_service_application.h
index 9defb8a7a6080f6085e230410bda0d78144a2d06..27d1451b85fd4ef75626182fff0d20d3268a8eb6 100644
--- a/services/test_service/test_service_application.h
+++ b/services/test_service/test_service_application.h
@@ -5,32 +5,25 @@
#ifndef SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_
#define SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_
-#include "mojo/public/cpp/application/application_delegate.h"
+#include "mojo/public/cpp/application/application_impl_base.h"
#include "mojo/public/cpp/system/macros.h"
namespace mojo {
namespace test {
-class TestService;
-class TestTimeService;
-
-class TestServiceApplication : public ApplicationDelegate {
+class TestServiceApplication : public ApplicationImplBase {
public:
TestServiceApplication();
~TestServiceApplication() override;
- void Initialize(ApplicationImpl* app) override;
-
- // ApplicationDelegate implementation.
- bool ConfigureIncomingConnection(
- ServiceProviderImpl* service_provider_impl) override;
+ // |ApplicationImplBase| method:
+ bool OnAcceptConnection(ServiceProviderImpl* service_provider_impl) override;
void AddRef();
void ReleaseRef();
private:
int ref_count_;
- ApplicationImpl* app_impl_;
MOJO_DISALLOW_COPY_AND_ASSIGN(TestServiceApplication);
};
« no previous file with comments | « services/test_service/test_request_tracker_application.cc ('k') | services/test_service/test_service_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698