OLD | NEW |
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 #include "base/time.h" | 9 #include "base/time.h" |
10 | 10 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // InputMethodStatusConnectionIsAlive. | 183 // InputMethodStatusConnectionIsAlive. |
184 // 105: Introduce SetLibcrosHistogramFunction. | 184 // 105: Introduce SetLibcrosHistogramFunction. |
185 // 106: Removed GetActiveInputMethods, SetActiveInputMethods, | 185 // 106: Removed GetActiveInputMethods, SetActiveInputMethods, |
186 // GetSupportedInputMethods, SetInputMethodActivated, GetImeConfig, | 186 // GetSupportedInputMethods, SetInputMethodActivated, GetImeConfig, |
187 // GetHardwareKeyboardLayoutName, GetCurrentKeyboardLayoutName, | 187 // GetHardwareKeyboardLayoutName, GetCurrentKeyboardLayoutName, |
188 // DisconnectInputMethodStatus, and InputMethodStatusConnectionIsAlive. | 188 // DisconnectInputMethodStatus, and InputMethodStatusConnectionIsAlive. |
189 // 107: Added RequestNetworkServiceConnect and SetNetworkServiceProperty. | 189 // 107: Added RequestNetworkServiceConnect and SetNetworkServiceProperty. |
190 // 108: Move types, RequestWifiServicePath, RequestScan, EnableNetworkDevice | 190 // 108: Move types, RequestWifiServicePath, RequestScan, EnableNetworkDevice |
191 // to deprecated. Add RequestHiddenWifiNetwork, RequestNetworkScan, | 191 // to deprecated. Add RequestHiddenWifiNetwork, RequestNetworkScan, |
192 // RequestNetworkDeviceEnable. | 192 // RequestNetworkDeviceEnable. |
| 193 // 109: Added CryptohomeDoAutomaticFreeDiskSpaceControl and |
| 194 // CryptohomeAsyncDoAutomaticFreeDiskSpaceControl |
193 | 195 |
194 namespace chromeos { // NOLINT | 196 namespace chromeos { // NOLINT |
195 | 197 |
196 enum CrosAPIVersion { | 198 enum CrosAPIVersion { |
197 kCrosAPIMinVersion = 104, | 199 kCrosAPIMinVersion = 104, |
198 kCrosAPIVersion = 108 | 200 kCrosAPIVersion = 109 |
199 }; | 201 }; |
200 | 202 |
201 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" | 203 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" |
202 extern char const * const kCrosDefaultPath; | 204 extern char const * const kCrosDefaultPath; |
203 | 205 |
204 // |path_to_libcros| is the path to the libcros.so file. | 206 // |path_to_libcros| is the path to the libcros.so file. |
205 // Returns true to indicate success. | 207 // Returns true to indicate success. |
206 // If returns false, |load_error| will contain a string describing the | 208 // If returns false, |load_error| will contain a string describing the |
207 // problem. | 209 // problem. |
208 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); | 210 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); |
209 | 211 |
210 // Use to provide a function for passing histogram timing values to Chrome. | 212 // Use to provide a function for passing histogram timing values to Chrome. |
211 typedef void (*LibcrosTimeHistogramFunc)( | 213 typedef void (*LibcrosTimeHistogramFunc)( |
212 const char* name, const base::TimeDelta& delta); | 214 const char* name, const base::TimeDelta& delta); |
213 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func); | 215 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func); |
214 | 216 |
215 } // namespace chromeos | 217 } // namespace chromeos |
216 | 218 |
217 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ | 219 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ |
OLD | NEW |