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

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: Use string16 instead of wstring to avoid Presubmit warning 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..43790f99a0c3bcf6c1ae19bf0205088791f152b5
--- /dev/null
+++ b/chrome/browser/extensions/api/system_info_storage/storage_info_provider_linux.cc
@@ -0,0 +1,42 @@
+// 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(const std::string& id,
+ StorageUnitInfo* info) OVERRIDE;
+};
+
+bool StorageInfoProviderLinux::QueryInfo(StorageInfo* info) {
+ return false;
+}
+
+bool StorageInfoProviderLinux::QueryUnitInfo(const std::string& id,
+ StorageUnitInfo* info) {
+ return false;
+}
+
+} // namespace
+
+// static
+StorageInfoProvider* StorageInfoProvider::Get() {
+ return StorageInfoProvider::GetInstance<StorageInfoProviderLinux>();
+}
+
+} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698