| Index: omaha_request_params.h
|
| diff --git a/omaha_request_params.h b/omaha_request_params.h
|
| index 9c372584d5a176fb966f344704ef5d547a547e88..551a3a3d774924f54b82430737f8d02e69be1b82 100644
|
| --- a/omaha_request_params.h
|
| +++ b/omaha_request_params.h
|
| @@ -27,6 +27,7 @@ struct OmahaRequestParams {
|
| const std::string& in_app_version,
|
| const std::string& in_app_lang,
|
| const std::string& in_app_track,
|
| + const std::string& in_hardware_class,
|
| const bool in_delta_okay,
|
| const std::string& in_update_url)
|
| : os_platform(in_os_platform),
|
| @@ -37,6 +38,7 @@ struct OmahaRequestParams {
|
| app_version(in_app_version),
|
| app_lang(in_app_lang),
|
| app_track(in_app_track),
|
| + hardware_class(in_hardware_class),
|
| delta_okay(in_delta_okay),
|
| update_url(in_update_url) {}
|
|
|
| @@ -48,6 +50,7 @@ struct OmahaRequestParams {
|
| std::string app_version;
|
| std::string app_lang;
|
| std::string app_track;
|
| + std::string hardware_class; // Hardware Qualification ID of the client
|
| bool delta_okay; // If this client can accept a delta
|
|
|
| std::string update_url;
|
| @@ -82,6 +85,10 @@ class OmahaRequestDeviceParams : public OmahaRequestParams {
|
| // Gets the machine type (e.g. "i686").
|
| std::string GetMachineType() const;
|
|
|
| + // Returns the hardware qualification ID of the system, or empty
|
| + // string if the HWID is unavailable.
|
| + std::string GetHardwareClass() const;
|
| +
|
| // When reading files, prepend root_ to the paths. Useful for testing.
|
| std::string root_;
|
|
|
|
|