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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 void OnInstanceReady() override; | 34 void OnInstanceReady() override; |
35 void OnInstanceClosed() override; | 35 void OnInstanceClosed() override; |
36 | 36 |
37 // Implementations for InstanceHolder<mojom::ProcessInstance>::Observer. | 37 // Implementations for InstanceHolder<mojom::ProcessInstance>::Observer. |
38 void OnProcessInstanceReady(); | 38 void OnProcessInstanceReady(); |
39 void OnProcessInstanceClosed(); | 39 void OnProcessInstanceClosed(); |
40 | 40 |
41 // MetricsHost overrides. | 41 // MetricsHost overrides. |
42 void ReportBootProgress( | 42 void ReportBootProgress( |
43 std::vector<mojom::BootProgressEventPtr> events) override; | 43 std::vector<mojom::BootProgressEventPtr> events) override; |
| 44 void ReportBootProgressWithType( |
| 45 std::vector<mojom::BootProgressEventPtr> events, |
| 46 mojom::BootType boot_type) override; |
44 | 47 |
45 private: | 48 private: |
46 bool CalledOnValidThread(); | 49 bool CalledOnValidThread(); |
47 void RequestProcessList(); | 50 void RequestProcessList(); |
48 void ParseProcessList(std::vector<mojom::RunningAppProcessInfoPtr> processes); | 51 void ParseProcessList(std::vector<mojom::RunningAppProcessInfoPtr> processes); |
49 | 52 |
50 // DBus callbacks. | 53 // DBus callbacks. |
51 void OnArcStartTimeRetrieved(bool success, base::TimeTicks arc_start_time); | 54 void OnArcStartTimeRetrieved(bool success, base::TimeTicks arc_start_time); |
52 | 55 |
53 private: | 56 private: |
(...skipping 25 matching lines...) Expand all Loading... |
79 // Always keep this the last member of this class to make sure it's the | 82 // Always keep this the last member of this class to make sure it's the |
80 // first thing to be destructed. | 83 // first thing to be destructed. |
81 base::WeakPtrFactory<ArcMetricsService> weak_ptr_factory_; | 84 base::WeakPtrFactory<ArcMetricsService> weak_ptr_factory_; |
82 | 85 |
83 DISALLOW_COPY_AND_ASSIGN(ArcMetricsService); | 86 DISALLOW_COPY_AND_ASSIGN(ArcMetricsService); |
84 }; | 87 }; |
85 | 88 |
86 } // namespace arc | 89 } // namespace arc |
87 | 90 |
88 #endif // COMPONENTS_ARC_METRICS_ARC_METRICS_SERVICE_H_ | 91 #endif // COMPONENTS_ARC_METRICS_ARC_METRICS_SERVICE_H_ |
OLD | NEW |