| 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_TRACKED_SERVICE_H_ | 5 #ifndef SERVICES_TEST_SERVICE_TRACKED_SERVICE_H_ |
| 6 #define SERVICES_TEST_SERVICE_TRACKED_SERVICE_H_ | 6 #define SERVICES_TEST_SERVICE_TRACKED_SERVICE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "mojo/public/cpp/system/macros.h" | 10 #include "mojo/public/cpp/system/macros.h" |
| 9 #include "mojo/services/test_service/test_request_tracker.mojom.h" | 11 #include "mojo/services/test_service/test_request_tracker.mojom.h" |
| 10 | 12 |
| 11 namespace mojo { | 13 namespace mojo { |
| 12 namespace test { | 14 namespace test { |
| 13 | 15 |
| 14 class TrackedService { | 16 class TrackedService { |
| 15 public: | 17 public: |
| 16 TrackedService(TestRequestTrackerPtr tracker, | 18 TrackedService(TestRequestTrackerPtr tracker, |
| 17 const std::string& service_name, | 19 const std::string& service_name, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 29 uint64_t requests_since_upload_; | 31 uint64_t requests_since_upload_; |
| 30 const std::string service_name_; | 32 const std::string service_name_; |
| 31 TestRequestTrackerPtr tracker_; | 33 TestRequestTrackerPtr tracker_; |
| 32 mojo::Callback<void()> tracking_connected_callback_; | 34 mojo::Callback<void()> tracking_connected_callback_; |
| 33 }; | 35 }; |
| 34 | 36 |
| 35 } // namespace test | 37 } // namespace test |
| 36 } // namespace mojo | 38 } // namespace mojo |
| 37 | 39 |
| 38 #endif // SERVICES_TEST_SERVICE_TRACKED_SERVICE_H_ | 40 #endif // SERVICES_TEST_SERVICE_TRACKED_SERVICE_H_ |
| OLD | NEW |