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

Unified Diff: chrome/browser/extensions/api/system_info_storage/storage_info_observer.h

Issue 12084017: [SystemInfo API] Implement systemInfo.storage.onAvailableCapacityChanged event (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add a stub file to pass building on Android Created 7 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
Index: chrome/browser/extensions/api/system_info_storage/storage_info_observer.h
diff --git a/chrome/browser/extensions/api/system_info_storage/storage_info_observer.h b/chrome/browser/extensions/api/system_info_storage/storage_info_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..5dd9cc9b6240a9bd1ce88f0f735a009ed51437a4
--- /dev/null
+++ b/chrome/browser/extensions/api/system_info_storage/storage_info_observer.h
@@ -0,0 +1,22 @@
+// Copyright 2013 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_EXTENSIONS_API_SYSTEM_INFO_STORAGE_STORAGE_INFO_OBSERVER_H_
+#define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_STORAGE_STORAGE_INFO_OBSERVER_H_
+
+namespace extensions {
+
+// Observes the free space changes happening on the storage.
+class StorageInfoObserver {
+ public:
+ virtual ~StorageInfoObserver() {}
+
+ // Called when the storage free space changes.
+ virtual void OnStorageFreeSpaceChanged(const std::string& id,
+ double old_value,
+ double new_value) = 0;
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_STORAGE_STORAGE_INFO_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698