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/system/macros.h" |
| 10 #include "mojo/services/test_service/test_service.mojom.h" |
| 11 #include "mojo/services/test_service/toy_monitoring_service.mojom.h" |
| 12 |
| 13 namespace mojo { |
| 14 |
| 15 class Application; |
| 16 |
| 17 namespace test { |
| 18 |
| 19 class MonitoringUploader; |
| 20 |
| 21 class TestTimeServiceImpl : public InterfaceImpl<TestTimeService> { |
| 22 public: |
| 23 TestTimeServiceImpl(ApplicationConnection* application); |
| 24 virtual ~TestTimeServiceImpl(); |
| 25 |
| 26 // |TestTimeService| methods: |
| 27 virtual void GetPartyTime( |
| 28 const mojo::Callback<void(int64_t time_usec)>& callback) MOJO_OVERRIDE; |
| 29 virtual void StartMonitoring(const mojo::Callback<void()>& callback) |
| 30 MOJO_OVERRIDE; |
| 31 |
| 32 private: |
| 33 ApplicationConnection* application_; |
| 34 scoped_ptr<MonitoringUploader> monitoring_; |
| 35 MOJO_DISALLOW_COPY_AND_ASSIGN(TestTimeServiceImpl); |
| 36 }; |
| 37 |
| 38 } // namespace test |
| 39 } // namespace mojo |
| 40 |
| 41 #endif // MOJO_SERVICES_TEST_SERVICE_TEST_TIME_SERVICE_IMPL_H_ |
OLD | NEW |