Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(791)

Side by Side Diff: components/arc/metrics/arc_metrics_service.h

Issue 2906503003: ARC: Add BootType parameter to ReportBootProgress() in metrics.mojom (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698