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_REQUEST_TRACKER_APPLICATION_H_ | 5 #ifndef SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_APPLICATION_H_ |
6 #define SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_APPLICATION_H_ | 6 #define SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_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 #include "services/test_service/test_request_tracker_impl.h" | 10 #include "services/test_service/test_request_tracker_impl.h" |
11 | 11 |
12 namespace mojo { | 12 namespace mojo { |
13 class ApplicationImpl; | 13 class ApplicationImpl; |
14 namespace test { | 14 namespace test { |
15 class TestTimeService; | 15 class TestTimeService; |
16 | 16 |
17 // Embeds TestRequestTracker mojo services into an application. | 17 // Embeds TestRequestTracker mojo services into an application. |
18 class TestRequestTrackerApplication : public ApplicationDelegate { | 18 class TestRequestTrackerApplication : public ApplicationDelegate { |
19 public: | 19 public: |
20 TestRequestTrackerApplication(); | 20 TestRequestTrackerApplication(); |
21 ~TestRequestTrackerApplication() override; | 21 ~TestRequestTrackerApplication() override; |
22 | 22 |
23 void Initialize(ApplicationImpl* app) override; | 23 void Initialize(ApplicationImpl* app) override; |
24 | 24 |
25 // ApplicationDelegate methods: | 25 // ApplicationDelegate methods: |
26 bool ConfigureIncomingConnection(ApplicationConnection* connection) override; | 26 bool ConfigureIncomingConnection( |
| 27 ServiceProviderImpl* service_provider_impl) override; |
27 | 28 |
28 private: | 29 private: |
29 ApplicationImpl* app_impl_; | 30 ApplicationImpl* app_impl_; |
30 TrackingContext context_; | 31 TrackingContext context_; |
31 MOJO_DISALLOW_COPY_AND_ASSIGN(TestRequestTrackerApplication); | 32 MOJO_DISALLOW_COPY_AND_ASSIGN(TestRequestTrackerApplication); |
32 }; | 33 }; |
33 | 34 |
34 } // namespace test | 35 } // namespace test |
35 } // namespace mojo | 36 } // namespace mojo |
36 | 37 |
37 #endif // SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_APPLICATION_H_ | 38 #endif // SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_APPLICATION_H_ |
OLD | NEW |