| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_ARC_ARC_STOP_REASON_H_ |
| 6 #define COMPONENTS_ARC_ARC_STOP_REASON_H_ |
| 7 |
| 8 #include <ostream> |
| 9 |
| 10 namespace arc { |
| 11 |
| 12 // Describes the reason the ARC instance is stopped. |
| 13 enum class ArcStopReason { |
| 14 // ARC instance has been gracefully shut down. |
| 15 SHUTDOWN, |
| 16 |
| 17 // Errors occurred during the ARC instance boot. This includes any failures |
| 18 // before the instance is actually attempted to be started, and also |
| 19 // failures on bootstrapping IPC channels with Android. |
| 20 GENERIC_BOOT_FAILURE, |
| 21 |
| 22 // The device is critically low on disk space. |
| 23 LOW_DISK_SPACE, |
| 24 |
| 25 // ARC instance has crashed. |
| 26 CRASH, |
| 27 }; |
| 28 |
| 29 // Defines "<<" operator for LOGging purpose. |
| 30 std::ostream& operator<<(std::ostream& os, ArcStopReason reason); |
| 31 |
| 32 } // namespace arc |
| 33 |
| 34 #endif // COMPONENTS_ARC_ARC_STOP_REASON_H_ |
| OLD | NEW |