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

Unified Diff: components/arc/arc_stop_reason.h

Issue 2720303002: Do nothing on OnSessionStopped if ARC is being restarted. (Closed)
Patch Set: Address comments. Created 3 years, 10 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 | « components/arc/arc_session_runner_unittest.cc ('k') | components/arc/arc_stop_reason.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/arc_stop_reason.h
diff --git a/components/arc/arc_stop_reason.h b/components/arc/arc_stop_reason.h
new file mode 100644
index 0000000000000000000000000000000000000000..df104439e7a3eea8861ed9d683c68665b3f590c2
--- /dev/null
+++ b/components/arc/arc_stop_reason.h
@@ -0,0 +1,34 @@
+// Copyright 2017 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.
+
+#ifndef COMPONENTS_ARC_ARC_STOP_REASON_H_
+#define COMPONENTS_ARC_ARC_STOP_REASON_H_
+
+#include <ostream>
+
+namespace arc {
+
+// Describes the reason the ARC instance is stopped.
+enum class ArcStopReason {
+ // ARC instance has been gracefully shut down.
+ SHUTDOWN,
+
+ // Errors occurred during the ARC instance boot. This includes any failures
+ // before the instance is actually attempted to be started, and also
+ // failures on bootstrapping IPC channels with Android.
+ GENERIC_BOOT_FAILURE,
+
+ // The device is critically low on disk space.
+ LOW_DISK_SPACE,
+
+ // ARC instance has crashed.
+ CRASH,
+};
+
+// Defines "<<" operator for LOGging purpose.
+std::ostream& operator<<(std::ostream& os, ArcStopReason reason);
+
+} // namespace arc
+
+#endif // COMPONENTS_ARC_ARC_STOP_REASON_H_
« no previous file with comments | « components/arc/arc_session_runner_unittest.cc ('k') | components/arc/arc_stop_reason.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698