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

Unified Diff: components/arc/common/metrics.mojom

Issue 2906503003: ARC: Add BootType parameter to ReportBootProgress() in metrics.mojom (Closed)
Patch Set: Address more comments Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/arc/metrics/arc_metrics_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/common/metrics.mojom
diff --git a/components/arc/common/metrics.mojom b/components/arc/common/metrics.mojom
index cb2e93650e6069327e610729674f4906ad46f373..d1c997a52a1e09b4e943986eee0e0601c745dbf0 100644
--- a/components/arc/common/metrics.mojom
+++ b/components/arc/common/metrics.mojom
@@ -1,9 +1,25 @@
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// Next MinVersion: 2
module arc.mojom;
+[Extensible]
+enum BootType {
+ // This is used only for backward compatibility reasons and the value has to
+ // be 0.
+ UNKNOWN = 0,
+
+ // This is for the very first (opt-in) boot.
+ FIRST_BOOT = 1,
+ // This is for the first boot after Chrome OS update which also updates the
+ // ARC image.
+ FIRST_BOOT_AFTER_UPDATE = 2,
+ // This is for a regular boot.
+ REGULAR_BOOT = 3,
+};
+
// Describes a boot progress event.
struct BootProgressEvent {
// Name of the boot progress event in Android. Currently there are
@@ -23,11 +39,14 @@ struct BootProgressEvent {
int64 uptimeMillis;
};
+// Next method ID: 1
interface MetricsHost {
// Report boot progress events from ARC instance.
- ReportBootProgress@0(array<BootProgressEvent> events);
+ ReportBootProgress@0(array<BootProgressEvent> events,
+ [MinVersion=1] BootType boot_type);
};
+// Next method ID: 1
interface MetricsInstance {
Init@0(MetricsHost host_ptr);
};
« no previous file with comments | « no previous file | components/arc/metrics/arc_metrics_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698