OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_ARC_METRICS_ARC_METRICS_SERVICE_H_ | 5 #ifndef COMPONENTS_ARC_METRICS_ARC_METRICS_SERVICE_H_ |
6 #define COMPONENTS_ARC_METRICS_ARC_METRICS_SERVICE_H_ | 6 #define COMPONENTS_ARC_METRICS_ARC_METRICS_SERVICE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 ArcMetricsService* arc_metrics_service_; | 64 ArcMetricsService* arc_metrics_service_; |
65 }; | 65 }; |
66 | 66 |
67 mojo::Binding<mojom::MetricsHost> binding_; | 67 mojo::Binding<mojom::MetricsHost> binding_; |
68 | 68 |
69 ProcessObserver process_observer_; | 69 ProcessObserver process_observer_; |
70 base::ThreadChecker thread_checker_; | 70 base::ThreadChecker thread_checker_; |
71 base::RepeatingTimer timer_; | 71 base::RepeatingTimer timer_; |
72 | 72 |
73 OomKillsMonitor oom_kills_monitor_; | 73 OomKillsMonitor::Handle oom_kills_monitor_handle_; |
74 | 74 |
75 base::TimeTicks arc_start_time_; | 75 base::TimeTicks arc_start_time_; |
76 | 76 |
77 // Always keep this the last member of this class to make sure it's the | 77 // Always keep this the last member of this class to make sure it's the |
78 // first thing to be destructed. | 78 // first thing to be destructed. |
79 base::WeakPtrFactory<ArcMetricsService> weak_ptr_factory_; | 79 base::WeakPtrFactory<ArcMetricsService> weak_ptr_factory_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(ArcMetricsService); | 81 DISALLOW_COPY_AND_ASSIGN(ArcMetricsService); |
82 }; | 82 }; |
83 | 83 |
84 } // namespace arc | 84 } // namespace arc |
85 | 85 |
86 #endif // COMPONENTS_ARC_METRICS_ARC_METRICS_SERVICE_H_ | 86 #endif // COMPONENTS_ARC_METRICS_ARC_METRICS_SERVICE_H_ |
OLD | NEW |