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 #include "mojo/services/test_service/tracked_service.h" | 5 #include "mojo/services/test_service/tracked_service.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 | 12 |
11 namespace mojo { | 13 namespace mojo { |
12 namespace test { | 14 namespace test { |
13 | 15 |
14 TrackedService::TrackedService(TestRequestTrackerPtr tracker, | 16 TrackedService::TrackedService(TestRequestTrackerPtr tracker, |
15 const std::string& service_name, | 17 const std::string& service_name, |
16 const mojo::Callback<void()>& callback) | 18 const mojo::Callback<void()>& callback) |
(...skipping 29 matching lines...) Expand all Loading... |
46 assert(id_ == 0u); | 48 assert(id_ == 0u); |
47 id_ = id; | 49 id_ = id; |
48 tracking_connected_callback_.Run(); | 50 tracking_connected_callback_.Run(); |
49 if (requests_since_upload_ == 0u) | 51 if (requests_since_upload_ == 0u) |
50 return; | 52 return; |
51 SendStats(); | 53 SendStats(); |
52 } | 54 } |
53 | 55 |
54 } // namespace test | 56 } // namespace test |
55 } // namespace mojo | 57 } // namespace mojo |
OLD | NEW |