| 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_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_PARAMS_H__ | 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_PARAMS_H__ |
| 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_PARAMS_H__ | 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_PARAMS_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 OmahaRequestParams(const std::string& in_machine_id, | 22 OmahaRequestParams(const std::string& in_machine_id, |
| 23 const std::string& in_user_id, | 23 const std::string& in_user_id, |
| 24 const std::string& in_os_platform, | 24 const std::string& in_os_platform, |
| 25 const std::string& in_os_version, | 25 const std::string& in_os_version, |
| 26 const std::string& in_os_sp, | 26 const std::string& in_os_sp, |
| 27 const std::string& in_os_board, | 27 const std::string& in_os_board, |
| 28 const std::string& in_app_id, | 28 const std::string& in_app_id, |
| 29 const std::string& in_app_version, | 29 const std::string& in_app_version, |
| 30 const std::string& in_app_lang, | 30 const std::string& in_app_lang, |
| 31 const std::string& in_app_track, | 31 const std::string& in_app_track, |
| 32 const bool in_delta_okay, |
| 32 const std::string& in_update_url) | 33 const std::string& in_update_url) |
| 33 : machine_id(in_machine_id), | 34 : machine_id(in_machine_id), |
| 34 user_id(in_user_id), | 35 user_id(in_user_id), |
| 35 os_platform(in_os_platform), | 36 os_platform(in_os_platform), |
| 36 os_version(in_os_version), | 37 os_version(in_os_version), |
| 37 os_sp(in_os_sp), | 38 os_sp(in_os_sp), |
| 38 os_board(in_os_board), | 39 os_board(in_os_board), |
| 39 app_id(in_app_id), | 40 app_id(in_app_id), |
| 40 app_version(in_app_version), | 41 app_version(in_app_version), |
| 41 app_lang(in_app_lang), | 42 app_lang(in_app_lang), |
| 42 app_track(in_app_track), | 43 app_track(in_app_track), |
| 44 delta_okay(in_delta_okay), |
| 43 update_url(in_update_url) {} | 45 update_url(in_update_url) {} |
| 44 | 46 |
| 45 std::string machine_id; | 47 std::string machine_id; |
| 46 std::string user_id; | 48 std::string user_id; |
| 47 std::string os_platform; | 49 std::string os_platform; |
| 48 std::string os_version; | 50 std::string os_version; |
| 49 std::string os_sp; | 51 std::string os_sp; |
| 50 std::string os_board; | 52 std::string os_board; |
| 51 std::string app_id; | 53 std::string app_id; |
| 52 std::string app_version; | 54 std::string app_version; |
| 53 std::string app_lang; | 55 std::string app_lang; |
| 54 std::string app_track; | 56 std::string app_track; |
| 57 bool delta_okay; // If this client can accept a delta |
| 55 | 58 |
| 56 std::string update_url; | 59 std::string update_url; |
| 57 | 60 |
| 58 // Suggested defaults | 61 // Suggested defaults |
| 59 static const char* const kAppId; | 62 static const char* const kAppId; |
| 60 static const char* const kOsPlatform; | 63 static const char* const kOsPlatform; |
| 61 static const char* const kOsVersion; | 64 static const char* const kOsVersion; |
| 62 static const char* const kUpdateUrl; | 65 static const char* const kUpdateUrl; |
| 63 }; | 66 }; |
| 64 | 67 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 88 | 91 |
| 89 // When reading files, prepend root_ to the paths. Useful for testing. | 92 // When reading files, prepend root_ to the paths. Useful for testing. |
| 90 std::string root_; | 93 std::string root_; |
| 91 | 94 |
| 92 DISALLOW_COPY_AND_ASSIGN(OmahaRequestDeviceParams); | 95 DISALLOW_COPY_AND_ASSIGN(OmahaRequestDeviceParams); |
| 93 }; | 96 }; |
| 94 | 97 |
| 95 } // namespace chromeos_update_engine | 98 } // namespace chromeos_update_engine |
| 96 | 99 |
| 97 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_PARAMS_H__ | 100 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_PARAMS_H__ |
| OLD | NEW |