| 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 MOJO_SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_IMPL_H_ | 5 #ifndef SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_IMPL_H_ |
| 6 #define MOJO_SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_IMPL_H_ | 6 #define SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "mojo/public/cpp/system/macros.h" | 9 #include "mojo/public/cpp/system/macros.h" |
| 10 #include "mojo/services/test_service/test_request_tracker.mojom.h" | 10 #include "services/test_service/test_request_tracker.mojom.h" |
| 11 | 11 |
| 12 namespace mojo { | 12 namespace mojo { |
| 13 class ApplicationConnection; | 13 class ApplicationConnection; |
| 14 namespace test { | 14 namespace test { |
| 15 | 15 |
| 16 typedef std::map<uint64_t, std::vector<ServiceStats> > AllRecordsMap; | 16 typedef std::map<uint64_t, std::vector<ServiceStats> > AllRecordsMap; |
| 17 | 17 |
| 18 // Shared state between all instances of TestRequestTrackerImpl | 18 // Shared state between all instances of TestRequestTrackerImpl |
| 19 // and the master TrackedRequestService. | 19 // and the master TrackedRequestService. |
| 20 struct TrackingContext { | 20 struct TrackingContext { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 callback) override; | 53 callback) override; |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 TrackingContext* context_; | 56 TrackingContext* context_; |
| 57 MOJO_DISALLOW_COPY_AND_ASSIGN(TestTrackedRequestServiceImpl); | 57 MOJO_DISALLOW_COPY_AND_ASSIGN(TestTrackedRequestServiceImpl); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace test | 60 } // namespace test |
| 61 } // namespace mojo | 61 } // namespace mojo |
| 62 | 62 |
| 63 #endif // MOJO_SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_IMPL_H_ | 63 #endif // SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_IMPL_H_ |
| OLD | NEW |