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 class ApplicationConnection; |
13 | 13 |
14 namespace test { | 14 namespace test { |
15 class TestService; | 15 class TestService; |
16 class TestTimeService; | 16 class TestTimeService; |
17 | 17 |
18 class TestServiceApplication : public ApplicationDelegate { | 18 class TestServiceApplication : public ApplicationDelegate { |
19 public: | 19 public: |
20 TestServiceApplication(); | 20 TestServiceApplication(); |
21 ~TestServiceApplication() override; | 21 ~TestServiceApplication() override; |
22 | 22 |
23 void Initialize(ApplicationImpl* app) override; | 23 void Initialize(ApplicationImpl* app) override; |
24 | 24 |
25 // ApplicationDelegate implementation. | 25 // ApplicationDelegate implementation. |
26 bool ConfigureIncomingConnection(ApplicationConnection* connection) override; | 26 bool ConfigureIncomingConnection( |
| 27 ServiceProviderImpl* service_provider_impl) override; |
27 | 28 |
28 void AddRef(); | 29 void AddRef(); |
29 void ReleaseRef(); | 30 void ReleaseRef(); |
30 | 31 |
31 private: | 32 private: |
32 int ref_count_; | 33 int ref_count_; |
33 ApplicationImpl* app_impl_; | 34 ApplicationImpl* app_impl_; |
34 | 35 |
35 MOJO_DISALLOW_COPY_AND_ASSIGN(TestServiceApplication); | 36 MOJO_DISALLOW_COPY_AND_ASSIGN(TestServiceApplication); |
36 }; | 37 }; |
37 | 38 |
38 } // namespace test | 39 } // namespace test |
39 } // namespace mojo | 40 } // namespace mojo |
40 | 41 |
41 #endif // SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_ | 42 #endif // SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_ |
OLD | NEW |