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