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

Unified Diff: content/browser/battery_status/battery_status_manager_interface.h

Issue 278043002: Battery Status API: browser-side implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
Index: content/browser/battery_status/battery_status_manager_interface.h
diff --git a/content/browser/battery_status/battery_status_manager_interface.h b/content/browser/battery_status/battery_status_manager_interface.h
new file mode 100644
index 0000000000000000000000000000000000000000..8baa8b80f6826f10511e98d6d56f0d7e0ee8bdcb
--- /dev/null
+++ b/content/browser/battery_status/battery_status_manager_interface.h
@@ -0,0 +1,25 @@
+// Copyright 2014 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_BATTERY_STATUS_BATTERY_STATUS_MANAGER_INTERFACE_H_
+#define CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_INTERFACE_H_
+
+namespace content {
+
+// General interface for the Battery Status API.
+class BatteryStatusManagerInterface {
jochen (gone - plz use gerrit) 2014/05/19 13:14:22 it's uncommon to have classes named ...Interface.
timvolodine 2014/05/22 10:02:33 the reason I did this is because there was a StopL
+ public:
+ BatteryStatusManagerInterface() { }
+ virtual ~BatteryStatusManagerInterface() { }
+
+ // Start listening for battery status changes.
+ virtual bool StartListeningBatteryChange() = 0;
+
+ // Stop listenting for battery status changes.
Michael van Ouwerkerk 2014/05/19 11:19:22 Nit: s/listenting/listening/
timvolodine 2014/05/22 10:02:33 Done.
+ virtual void StopListeningBatteryChange() = 0;
+};
+
+} // namespace content
+
+#endif // CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_INTERFACE_H_

Powered by Google App Engine
This is Rietveld 408576698