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

Side by Side Diff: chromeos_cros_api.h

Issue 4132006: [cros] Add *Safe methods to the ownership API (Closed) Base URL: http://git.chromium.org/git/cros.git
Patch Set: comment out NOTREACHED Created 10 years, 1 month 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) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS 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_CROS_API_VERSION_H_ 5 #ifndef CHROMEOS_CROS_API_VERSION_H_
6 #define CHROMEOS_CROS_API_VERSION_H_ 6 #define CHROMEOS_CROS_API_VERSION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 // This file defines two version numbers for the CrosAPI. 10 // This file defines two version numbers for the CrosAPI.
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // 72: Added cellular data plan (CellularDataPlan) and monitoring. 146 // 72: Added cellular data plan (CellularDataPlan) and monitoring.
147 // 73: Changed cryptohome Mount APIs to support better configuration 147 // 73: Changed cryptohome Mount APIs to support better configuration
148 // 74: Added TpmCanAttemptOwnership/TpmClearStoredPassword APIs to cryptohome 148 // 74: Added TpmCanAttemptOwnership/TpmClearStoredPassword APIs to cryptohome
149 // 75: Added DeviceInfo and CarrierInfo to ServiceInfo 149 // 75: Added DeviceInfo and CarrierInfo to ServiceInfo
150 // 76: Added EnableScreenLock to power library. 150 // 76: Added EnableScreenLock to power library.
151 // 77: Added RequestShutdown to power library. 151 // 77: Added RequestShutdown to power library.
152 // 78: Changed ListIPConfigs to return the hardware address as well. 152 // 78: Changed ListIPConfigs to return the hardware address as well.
153 // 79: Added RequestRestart to power library. 153 // 79: Added RequestRestart to power library.
154 // 80: Added a context parameter to GetSystemLogs 154 // 80: Added a context parameter to GetSystemLogs
155 // 81: Added SetTrack and GetTrack to update engine library. 155 // 81: Added SetTrack and GetTrack to update engine library.
156 // 82: Add *Safe calls for the ownership API, which use memory safely.
156 157
157 namespace chromeos { // NOLINT 158 namespace chromeos { // NOLINT
158 159
159 enum CrosAPIVersion { 160 enum CrosAPIVersion {
160 kCrosAPIMinVersion = 55, 161 kCrosAPIMinVersion = 55,
161 kCrosAPIVersion = 81 162 kCrosAPIVersion = 82
162 }; 163 };
163 164
164 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" 165 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so"
165 extern char const * const kCrosDefaultPath; 166 extern char const * const kCrosDefaultPath;
166 167
167 // |path_to_libcros| is the path to the libcros.so file. 168 // |path_to_libcros| is the path to the libcros.so file.
168 // Returns true to indicate success. 169 // Returns true to indicate success.
169 // If returns false, |load_error| will contain a string describing the 170 // If returns false, |load_error| will contain a string describing the
170 // problem. 171 // problem.
171 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); 172 bool LoadLibcros(const char* path_to_libcros, std::string& load_error);
172 173
173 } // namespace chromeos 174 } // namespace chromeos
174 175
175 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ 176 #endif /* CHROMEOS_CROS_API_VERSION_H_ */
OLDNEW
« no previous file with comments | « SConstruct.chromiumos ('k') | chromeos_login.h » ('j') | chromeos_login.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698