| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2011 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 // 112: Added MonitorBrightnessV2 and deprecated MonitorBrightness. | 197 // 112: Added MonitorBrightnessV2 and deprecated MonitorBrightness. |
| 198 // 113: Deprecated GetAutoRepeatEnabled and GetAutoRepeatRate. | 198 // 113: Deprecated GetAutoRepeatEnabled and GetAutoRepeatRate. |
| 199 // 114: Added async RequestUpdateTrack and SetUpdateTrack to update_engine. | 199 // 114: Added async RequestUpdateTrack and SetUpdateTrack to update_engine. |
| 200 // 115: Added async methods for mount operations. | 200 // 115: Added async methods for mount operations. |
| 201 // 116: Added Store/RetrievePolicy. | 201 // 116: Added Store/RetrievePolicy. |
| 202 // 117: Added async RequestRetrieveProperty. | 202 // 117: Added async RequestRetrieveProperty. |
| 203 // 118: Add async ClearNetworkServiceProperty | 203 // 118: Add async ClearNetworkServiceProperty |
| 204 // 119: Added support for passing dict for SetNetworkServiceProperty. | 204 // 119: Added support for passing dict for SetNetworkServiceProperty. |
| 205 // 120: Added RequestVirtualNetwork to chromeos_network. | 205 // 120: Added RequestVirtualNetwork to chromeos_network. |
| 206 // 121: Added MonitorSMS and DisconnectSMSMonitor | 206 // 121: Added MonitorSMS and DisconnectSMSMonitor |
| 207 // 122: Change Store/RetrievePolicy to use byte arrays underneath the hood. |
| 207 | 208 |
| 208 namespace chromeos { // NOLINT | 209 namespace chromeos { // NOLINT |
| 209 | 210 |
| 210 enum CrosAPIVersion { | 211 enum CrosAPIVersion { |
| 211 kCrosAPIMinVersion = 104, | 212 kCrosAPIMinVersion = 104, |
| 212 kCrosAPIVersion = 121 | 213 kCrosAPIVersion = 122 |
| 213 }; | 214 }; |
| 214 | 215 |
| 215 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" | 216 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" |
| 216 extern char const * const kCrosDefaultPath; | 217 extern char const * const kCrosDefaultPath; |
| 217 | 218 |
| 218 // |path_to_libcros| is the path to the libcros.so file. | 219 // |path_to_libcros| is the path to the libcros.so file. |
| 219 // Returns true to indicate success. | 220 // Returns true to indicate success. |
| 220 // If returns false, |load_error| will contain a string describing the | 221 // If returns false, |load_error| will contain a string describing the |
| 221 // problem. | 222 // problem. |
| 222 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); | 223 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); |
| 223 | 224 |
| 224 // Use to provide a function for passing histogram timing values to Chrome. | 225 // Use to provide a function for passing histogram timing values to Chrome. |
| 225 typedef void (*LibcrosTimeHistogramFunc)( | 226 typedef void (*LibcrosTimeHistogramFunc)( |
| 226 const char* name, const base::TimeDelta& delta); | 227 const char* name, const base::TimeDelta& delta); |
| 227 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func); | 228 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func); |
| 228 | 229 |
| 229 } // namespace chromeos | 230 } // namespace chromeos |
| 230 | 231 |
| 231 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ | 232 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ |
| OLD | NEW |