| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_STATISTICS_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_STATISTICS_PROVIDER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <string> |
| 10 |
| 11 namespace chromeos { |
| 12 namespace system { |
| 13 |
| 14 // This interface provides access to Chrome OS statistics. |
| 15 class StatisticsProvider { |
| 16 public: |
| 17 // Retrieve the named machine statistic (e.g. "hardware_class"). |
| 18 // This does not update the statistcs. If the |name| is not set, |result| |
| 19 // preserves old value. |
| 20 virtual bool GetMachineStatistic(const std::string& name, |
| 21 std::string* result) = 0; |
| 22 |
| 23 static StatisticsProvider* GetInstance(); |
| 24 |
| 25 protected: |
| 26 virtual ~StatisticsProvider() {} |
| 27 }; |
| 28 |
| 29 } // namespace system |
| 30 } // namespace chromeos |
| 31 |
| 32 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_STATISTICS_PROVIDER_H_ |
| OLD | NEW |