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

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: Address more comments 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
« no previous file with comments | « components/arc/common/metrics.mojom ('k') | components/arc/metrics/arc_metrics_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « components/arc/common/metrics.mojom ('k') | components/arc/metrics/arc_metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698