| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MOJO_SERVICES_TEST_SERVICE_TEST_TIME_SERVICE_IMPL_H_ | |
| 6 #define MOJO_SERVICES_TEST_SERVICE_TEST_TIME_SERVICE_IMPL_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "mojo/public/cpp/bindings/interface_request.h" | |
| 10 #include "mojo/public/cpp/bindings/strong_binding.h" | |
| 11 #include "mojo/public/cpp/system/macros.h" | |
| 12 #include "mojo/services/test_service/test_service.mojom.h" | |
| 13 | |
| 14 namespace mojo { | |
| 15 | |
| 16 class ApplicationConnection; | |
| 17 | |
| 18 namespace test { | |
| 19 | |
| 20 class TestRequestTrackerClientImpl; | |
| 21 | |
| 22 class TestTimeServiceImpl : public TestTimeService { | |
| 23 public: | |
| 24 TestTimeServiceImpl(ApplicationConnection* application, | |
| 25 InterfaceRequest<TestTimeService> request); | |
| 26 ~TestTimeServiceImpl() override; | |
| 27 | |
| 28 // |TestTimeService| methods: | |
| 29 void GetPartyTime( | |
| 30 const mojo::Callback<void(int64_t time_usec)>& callback) override; | |
| 31 void StartTrackingRequests(const mojo::Callback<void()>& callback) override; | |
| 32 | |
| 33 private: | |
| 34 ApplicationConnection* application_; | |
| 35 scoped_ptr<TestRequestTrackerClientImpl> tracking_; | |
| 36 StrongBinding<TestTimeService> binding_; | |
| 37 MOJO_DISALLOW_COPY_AND_ASSIGN(TestTimeServiceImpl); | |
| 38 }; | |
| 39 | |
| 40 } // namespace test | |
| 41 } // namespace mojo | |
| 42 | |
| 43 #endif // MOJO_SERVICES_TEST_SERVICE_TEST_TIME_SERVICE_IMPL_H_ | |
| OLD | NEW |