| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 // InstanceHolder<mojom::MetricsInstance>::Observer overrides. | 33 // InstanceHolder<mojom::MetricsInstance>::Observer overrides. |
| 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(std::vector<mojom::BootProgressEventPtr> events, |
| 43 std::vector<mojom::BootProgressEventPtr> events) override; | 43 mojom::BootType boot_type) override; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 bool CalledOnValidThread(); | 46 bool CalledOnValidThread(); |
| 47 void RequestProcessList(); | 47 void RequestProcessList(); |
| 48 void ParseProcessList(std::vector<mojom::RunningAppProcessInfoPtr> processes); | 48 void ParseProcessList(std::vector<mojom::RunningAppProcessInfoPtr> processes); |
| 49 | 49 |
| 50 // DBus callbacks. | 50 // DBus callbacks. |
| 51 void OnArcStartTimeRetrieved(bool success, base::TimeTicks arc_start_time); | 51 void OnArcStartTimeRetrieved(bool success, base::TimeTicks arc_start_time); |
| 52 | 52 |
| 53 private: | 53 private: |
| (...skipping 25 matching lines...) Expand all Loading... |
| 79 // Always keep this the last member of this class to make sure it's the | 79 // Always keep this the last member of this class to make sure it's the |
| 80 // first thing to be destructed. | 80 // first thing to be destructed. |
| 81 base::WeakPtrFactory<ArcMetricsService> weak_ptr_factory_; | 81 base::WeakPtrFactory<ArcMetricsService> weak_ptr_factory_; |
| 82 | 82 |
| 83 DISALLOW_COPY_AND_ASSIGN(ArcMetricsService); | 83 DISALLOW_COPY_AND_ASSIGN(ArcMetricsService); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace arc | 86 } // namespace arc |
| 87 | 87 |
| 88 #endif // COMPONENTS_ARC_METRICS_ARC_METRICS_SERVICE_H_ | 88 #endif // COMPONENTS_ARC_METRICS_ARC_METRICS_SERVICE_H_ |
| OLD | NEW |