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

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

Issue 25112004: Move statistics_provider to chromeos/system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments Created 7 years, 2 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
8 #include <string>
9
10 namespace chromeos {
11 namespace system {
12
13 // Developer switch value.
14 extern const char kDevSwitchBootMode[];
15
16 // HWID key.
17 extern const char kHardwareClass[];
18
19 // OEM customization flag that permits exiting enterprise enrollment flow in
20 // OOBE when 'oem_enterprise_managed' flag is set.
21 extern const char kOemCanExitEnterpriseEnrollmentKey[];
22
23 // OEM customization directive that specified intended device purpose.
24 extern const char kOemDeviceRequisitionKey[];
25
26 // OEM customization flag that enforces enterprise enrollment flow in OOBE.
27 extern const char kOemIsEnterpriseManagedKey[];
28
29 // OEM customization flag that specifies if OOBE flow should be enhanced for
30 // keyboard driven control.
31 extern const char kOemKeyboardDrivenOobeKey[];
32
33 // Offer coupon code key.
34 extern const char kOffersCouponCodeKey[];
35
36 // Offer group key.
37 extern const char kOffersGroupCodeKey[];
38
39 // This interface provides access to Chrome OS statistics.
40 class StatisticsProvider {
41 public:
42 // Initializes the statistics provider.
43 virtual void Init() = 0;
44
45 // Starts loading the machine statistcs.
46 virtual void StartLoadingMachineStatistics() = 0;
47
48 // Retrieve the named machine statistic (e.g. "hardware_class").
49 // This does not update the statistcs. If the |name| is not set, |result|
50 // preserves old value.
51 virtual bool GetMachineStatistic(const std::string& name,
52 std::string* result) = 0;
53
54 // Retrieve boolean value for named machine flag.
55 virtual bool GetMachineFlag(const std::string& name,
56 bool* result) = 0;
57
58 // Loads kiosk oem manifest file.
59 virtual void LoadOemManifest() = 0;
60
61 static StatisticsProvider* GetInstance();
62
63 protected:
64 virtual ~StatisticsProvider() {}
65 };
66
67 } // namespace system
68 } // namespace chromeos
69
70 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_STATISTICS_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/system/mock_statistics_provider.cc ('k') | chrome/browser/chromeos/system/statistics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698