| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_ | 5 #ifndef SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_ |
| 6 #define SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_ | 6 #define SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_ |
| 7 | 7 |
| 8 #include "mojo/public/cpp/application/application_delegate.h" | 8 #include "mojo/public/cpp/application/application_delegate.h" |
| 9 #include "mojo/public/cpp/system/macros.h" | 9 #include "mojo/public/cpp/system/macros.h" |
| 10 | 10 |
| 11 namespace mojo { | 11 namespace mojo { |
| 12 class ApplicationConnection; | 12 namespace test { |
| 13 | 13 |
| 14 namespace test { | |
| 15 class TestService; | 14 class TestService; |
| 16 class TestTimeService; | 15 class TestTimeService; |
| 17 | 16 |
| 18 class TestServiceApplication : public ApplicationDelegate { | 17 class TestServiceApplication : public ApplicationDelegate { |
| 19 public: | 18 public: |
| 20 TestServiceApplication(); | 19 TestServiceApplication(); |
| 21 ~TestServiceApplication() override; | 20 ~TestServiceApplication() override; |
| 22 | 21 |
| 23 void Initialize(ApplicationImpl* app) override; | 22 void Initialize(ApplicationImpl* app) override; |
| 24 | 23 |
| 25 // ApplicationDelegate implementation. | 24 // ApplicationDelegate implementation. |
| 26 bool ConfigureIncomingConnection( | 25 bool ConfigureIncomingConnection( |
| 27 ServiceProviderImpl* service_provider_impl) override; | 26 ServiceProviderImpl* service_provider_impl) override; |
| 28 | 27 |
| 29 void AddRef(); | 28 void AddRef(); |
| 30 void ReleaseRef(); | 29 void ReleaseRef(); |
| 31 | 30 |
| 32 private: | 31 private: |
| 33 int ref_count_; | 32 int ref_count_; |
| 34 ApplicationImpl* app_impl_; | 33 ApplicationImpl* app_impl_; |
| 35 | 34 |
| 36 MOJO_DISALLOW_COPY_AND_ASSIGN(TestServiceApplication); | 35 MOJO_DISALLOW_COPY_AND_ASSIGN(TestServiceApplication); |
| 37 }; | 36 }; |
| 38 | 37 |
| 39 } // namespace test | 38 } // namespace test |
| 40 } // namespace mojo | 39 } // namespace mojo |
| 41 | 40 |
| 42 #endif // SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_ | 41 #endif // SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_ |
| OLD | NEW |