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

Side by Side Diff: chrome/browser/chromeos/system/statistics_provider.h

Issue 7324017: Split SystemAccess into TimezoneSettings, StatisticsProvider, and SyslogsProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698