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

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

Issue 212653004: Update server-backed state key generation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix re-enrollment test. Created 6 years, 8 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_SYSTEM_STATISTICS_PROVIDER_H_ 5 #ifndef CHROMEOS_SYSTEM_STATISTICS_PROVIDER_H_
6 #define CHROMEOS_SYSTEM_STATISTICS_PROVIDER_H_ 6 #define CHROMEOS_SYSTEM_STATISTICS_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // Offer coupon code key. 43 // Offer coupon code key.
44 CHROMEOS_EXPORT extern const char kOffersCouponCodeKey[]; 44 CHROMEOS_EXPORT extern const char kOffersCouponCodeKey[];
45 45
46 // Offer group key. 46 // Offer group key.
47 CHROMEOS_EXPORT extern const char kOffersGroupCodeKey[]; 47 CHROMEOS_EXPORT extern const char kOffersGroupCodeKey[];
48 48
49 // Release Brand Code key. 49 // Release Brand Code key.
50 CHROMEOS_EXPORT extern const char kRlzBrandCodeKey[]; 50 CHROMEOS_EXPORT extern const char kRlzBrandCodeKey[];
51 51
52 // The serial number of the disk the root device is on.
53 CHROMEOS_EXPORT extern const char kDiskSerialNumber[];
54
52 // This interface provides access to Chrome OS statistics. 55 // This interface provides access to Chrome OS statistics.
53 class CHROMEOS_EXPORT StatisticsProvider { 56 class CHROMEOS_EXPORT StatisticsProvider {
54 public: 57 public:
55 // Starts loading the machine statistics. File operations are performed on 58 // Starts loading the machine statistics. File operations are performed on
56 // |file_task_runner|. 59 // |file_task_runner|.
57 virtual void StartLoadingMachineStatistics( 60 virtual void StartLoadingMachineStatistics(
58 const scoped_refptr<base::TaskRunner>& file_task_runner, 61 const scoped_refptr<base::TaskRunner>& file_task_runner,
59 bool load_oem_manifest) = 0; 62 bool load_oem_manifest) = 0;
60 63
61 // Retrieves the named machine statistic (e.g. "hardware_class"). If |name| 64 // Retrieves the named machine statistic (e.g. "hardware_class"). If |name|
(...skipping 17 matching lines...) Expand all
79 static void SetTestProvider(StatisticsProvider* test_provider); 82 static void SetTestProvider(StatisticsProvider* test_provider);
80 83
81 protected: 84 protected:
82 virtual ~StatisticsProvider() {} 85 virtual ~StatisticsProvider() {}
83 }; 86 };
84 87
85 } // namespace system 88 } // namespace system
86 } // namespace chromeos 89 } // namespace chromeos
87 90
88 #endif // CHROMEOS_SYSTEM_STATISTICS_PROVIDER_H_ 91 #endif // CHROMEOS_SYSTEM_STATISTICS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698