| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef SERVICES_TEST_SERVICE_TRACKED_SERVICE_H_ |
| #define SERVICES_TEST_SERVICE_TRACKED_SERVICE_H_ |
| #include "mojo/public/cpp/system/macros.h" |
| #include "services/test_service/test_request_tracker.mojom.h" |
| TrackedService(TestRequestTrackerPtr tracker, |
| const std::string& service_name, |
| const mojo::Callback<void()>& tracking_connected_callback); |
| // Call whenever an event happens that you want to be recorded. |
| uint64_t requests_since_upload_; |
| const std::string service_name_; |
| TestRequestTrackerPtr tracker_; |
| mojo::Callback<void()> tracking_connected_callback_; |
| #endif // SERVICES_TEST_SERVICE_TRACKED_SERVICE_H_ |