Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: mojo/services/test_service/tracked_service.h

Issue 1760383002: Remove some unneeded directories (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: , Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_TRACKED_SERVICE_H_
6 #define SERVICES_TEST_SERVICE_TRACKED_SERVICE_H_
7
8 #include <stdint.h>
9
10 #include "mojo/public/cpp/system/macros.h"
11 #include "mojo/services/test_service/test_request_tracker.mojom.h"
12
13 namespace mojo {
14 namespace test {
15
16 class TrackedService {
17 public:
18 TrackedService(TestRequestTrackerPtr tracker,
19 const std::string& service_name,
20 const mojo::Callback<void()>& tracking_connected_callback);
21 ~TrackedService();
22
23 // Call whenever an event happens that you want to be recorded.
24 void RecordNewRequest();
25
26 private:
27 void SetId(uint64_t id);
28 void SendStats();
29
30 uint64_t id_;
31 uint64_t requests_since_upload_;
32 const std::string service_name_;
33 TestRequestTrackerPtr tracker_;
34 mojo::Callback<void()> tracking_connected_callback_;
35 };
36
37 } // namespace test
38 } // namespace mojo
39
40 #endif // SERVICES_TEST_SERVICE_TRACKED_SERVICE_H_
OLDNEW
« no previous file with comments | « mojo/services/test_service/test_time_service_impl.cc ('k') | mojo/services/test_service/tracked_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698