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

Side by Side Diff: chrome/browser/policy/device_status_collector.h

Issue 10827322: Set linux distro to CHROMEOS_RELEASE_DESCRIPTION on ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk and switch to const-ref string params in version loader callbacks 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_POLICY_DEVICE_STATUS_COLLECTOR_H_ 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_STATUS_COLLECTOR_H_
6 #define CHROME_BROWSER_POLICY_DEVICE_STATUS_COLLECTOR_H_ 6 #define CHROME_BROWSER_POLICY_DEVICE_STATUS_COLLECTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 private: 81 private:
82 // Prevents the local store of activity periods from growing too large by 82 // Prevents the local store of activity periods from growing too large by
83 // removing entries that are outside the reporting window. 83 // removing entries that are outside the reporting window.
84 void PruneStoredActivityPeriods(base::Time base_time); 84 void PruneStoredActivityPeriods(base::Time base_time);
85 85
86 void AddActivePeriod(base::Time start, base::Time end); 86 void AddActivePeriod(base::Time start, base::Time end);
87 87
88 // Callbacks from chromeos::VersionLoader. 88 // Callbacks from chromeos::VersionLoader.
89 void OnOSVersion(chromeos::VersionLoader::Handle handle, 89 void OnOSVersion(chromeos::VersionLoader::Handle handle,
90 std::string version); 90 const std::string& version);
91 void OnOSFirmware(chromeos::VersionLoader::Handle handle, 91 void OnOSFirmware(chromeos::VersionLoader::Handle handle,
92 std::string version); 92 const std::string& version);
93 93
94 // Helpers for the various portions of the status. 94 // Helpers for the various portions of the status.
95 void GetActivityTimes( 95 void GetActivityTimes(
96 enterprise_management::DeviceStatusReportRequest* request); 96 enterprise_management::DeviceStatusReportRequest* request);
97 void GetVersionInfo( 97 void GetVersionInfo(
98 enterprise_management::DeviceStatusReportRequest* request); 98 enterprise_management::DeviceStatusReportRequest* request);
99 void GetBootMode( 99 void GetBootMode(
100 enterprise_management::DeviceStatusReportRequest* request); 100 enterprise_management::DeviceStatusReportRequest* request);
101 void GetLocation( 101 void GetLocation(
102 enterprise_management::DeviceStatusReportRequest* request); 102 enterprise_management::DeviceStatusReportRequest* request);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 bool report_activity_times_; 152 bool report_activity_times_;
153 bool report_boot_mode_; 153 bool report_boot_mode_;
154 bool report_location_; 154 bool report_location_;
155 155
156 DISALLOW_COPY_AND_ASSIGN(DeviceStatusCollector); 156 DISALLOW_COPY_AND_ASSIGN(DeviceStatusCollector);
157 }; 157 };
158 158
159 } // namespace policy 159 } // namespace policy
160 160
161 #endif // CHROME_BROWSER_POLICY_DEVICE_STATUS_COLLECTOR_H_ 161 #endif // CHROME_BROWSER_POLICY_DEVICE_STATUS_COLLECTOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/version_loader.h ('k') | chrome/browser/policy/device_status_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698