| 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 SERVICES_TEST_SERVICE_TEST_TIME_SERVICE_IMPL_H_ | |
| 6 #define SERVICES_TEST_SERVICE_TEST_TIME_SERVICE_IMPL_H_ | |
| 7 | |
| 8 #include <stdint.h> | |
| 9 | |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 #include "mojo/public/cpp/bindings/interface_request.h" | |
| 12 #include "mojo/public/cpp/bindings/strong_binding.h" | |
| 13 #include "mojo/public/cpp/system/macros.h" | |
| 14 #include "mojo/services/test_service/test_service.mojom.h" | |
| 15 | |
| 16 namespace mojo { | |
| 17 class Connection; | |
| 18 class Connector; | |
| 19 | |
| 20 namespace test { | |
| 21 | |
| 22 class TrackedService; | |
| 23 | |
| 24 class TestTimeServiceImpl : public TestTimeService { | |
| 25 public: | |
| 26 TestTimeServiceImpl(Connector* connector, TestTimeServiceRequest request); | |
| 27 ~TestTimeServiceImpl() override; | |
| 28 | |
| 29 // |TestTimeService| methods: | |
| 30 void GetPartyTime( | |
| 31 const mojo::Callback<void(int64_t time_usec)>& callback) override; | |
| 32 void StartTrackingRequests(const mojo::Callback<void()>& callback) override; | |
| 33 | |
| 34 private: | |
| 35 Connector* connector_; | |
| 36 scoped_ptr<TrackedService> tracking_; | |
| 37 StrongBinding<TestTimeService> binding_; | |
| 38 DISALLOW_COPY_AND_ASSIGN(TestTimeServiceImpl); | |
| 39 }; | |
| 40 | |
| 41 } // namespace test | |
| 42 } // namespace mojo | |
| 43 | |
| 44 #endif // SERVICES_TEST_SERVICE_TEST_TIME_SERVICE_IMPL_H_ | |
| OLD | NEW |