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

Unified Diff: chrome/browser/chromeos/arc/arc_boot_error_notification.h

Issue 2136023002: arc: Abort booting ARC if the device is critically low on disk space. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style fixes as per comments. Created 4 years, 5 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 | chrome/browser/chromeos/arc/arc_boot_error_notification.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_boot_error_notification.h
diff --git a/chrome/browser/chromeos/arc/arc_boot_error_notification.h b/chrome/browser/chromeos/arc/arc_boot_error_notification.h
new file mode 100644
index 0000000000000000000000000000000000000000..322806ffbf7eb15fed65388bbf50306b589c3bf7
--- /dev/null
+++ b/chrome/browser/chromeos/arc/arc_boot_error_notification.h
@@ -0,0 +1,30 @@
+// 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.
+
+#ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_BOOT_ERROR_NOTIFICATION_H_
+#define CHROME_BROWSER_CHROMEOS_ARC_ARC_BOOT_ERROR_NOTIFICATION_H_
+
+#include "base/macros.h"
+#include "components/arc/arc_bridge_service.h"
+#include "components/arc/arc_service.h"
+
+namespace arc {
+
+// Watches for ARC boot errors and show notifications.
+class ArcBootErrorNotification : public ArcService,
+ public ArcBridgeService::Observer {
+ public:
+ explicit ArcBootErrorNotification(ArcBridgeService* bridge_service);
+ ~ArcBootErrorNotification() override;
+
+ // ArcBridgeService::Observer
+ void OnBridgeStopped(ArcBridgeService::StopReason reason) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ArcBootErrorNotification);
+};
+
+} // namespace arc
+
+#endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_BOOT_ERROR_NOTIFICATION_H_
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_boot_error_notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698