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

Unified Diff: chrome/browser/extensions/api/system_info_storage/storage_info_provider_linux.cc

Issue 10876041: Polish the SystemInfoProvider template code and refactor StorageInfoProvider based on it (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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_provider_linux.cc
diff --git a/chrome/browser/extensions/api/system_info_storage/storage_info_provider_linux.cc b/chrome/browser/extensions/api/system_info_storage/storage_info_provider_linux.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4862b41801729dae2931e66a2d08e5a8e131f814
--- /dev/null
+++ b/chrome/browser/extensions/api/system_info_storage/storage_info_provider_linux.cc
@@ -0,0 +1,40 @@
+// Copyright (c) 2012 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.
+
+#include "chrome/browser/extensions/api/system_info_storage/storage_info_provider.h"
+
+namespace extensions {
+
+namespace {
+
+using api::experimental_system_info_storage::StorageInfo;
+using api::experimental_system_info_storage::StorageUnitInfo;
+
+// StorageInfoProvider implementation on Linux platform.
+// TODO(hongbo): not implemented yet.
+class StorageInfoProviderLinux : public StorageInfoProvider {
+ public:
+ StorageInfoProviderLinux() {}
+ virtual ~StorageInfoProviderLinux() {}
+
+ virtual bool QueryInfo(StorageInfo* info) OVERRIDE;
+ virtual bool QueryUnitInfo(StorageUnitInfo* info) OVERRIDE;
+};
+
+bool StorageInfoProviderLinux::QueryInfo(StorageInfo* info) {
+ return false;
+}
+
+bool StorageInfoProviderLinux::QueryUnitInfo(StorageUnitInfo* info) {
Mihai Parparita -not on Chrome 2012/08/24 00:57:29 In the header file this was declared as taking two
+ return false;
+}
+
+} // namespace
+
+// static
+StorageInfoProvider* StorageInfoProvider::Get() {
+ return StorageInfoProvider::GetInstance<StorageInfoProviderLinux>();
+}
+
+} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698