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

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

Issue 16707002: [SystemInfo API] Rewrite storage info provider using storage monitor impl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove storage_info_provider_linux_unittest.cc in chrome_tests_unit.gypi Created 7 years, 6 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
deleted file mode 100644
index 914a51a7ccd684ba7afe27321bd9a02464fb2838..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/system_info_storage/storage_info_observer.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// 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_
-
-#include "chrome/common/extensions/api/experimental_system_info_storage.h"
-
-namespace extensions {
-
-// Observes the changes happening on the storage devices, including free space
-// changes, storage arrival and removal.
-class StorageInfoObserver {
- public:
- virtual ~StorageInfoObserver() {}
-
- // Called when the storage free space changes.
- virtual void OnStorageFreeSpaceChanged(const std::string& device_id,
- double old_value,
- double new_value) {}
-
- // Called when a new removable storage device is attached.
- virtual void OnStorageAttached(
- const std::string& device_id,
- api::experimental_system_info_storage::StorageUnitType type,
- double capacity,
- double available_capacity) {}
-
- // Called when a removable storage device is detached.
- virtual void OnStorageDetached(const std::string& device_id) {}
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_STORAGE_STORAGE_INFO_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698