| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009 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_UPDATE_CHECK_ACTION_H__ | 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__ |
| 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__ | 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__ |
| 7 | 7 |
| 8 #include <sys/stat.h> | 8 #include <sys/stat.h> |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 #include <fcntl.h> | 10 #include <fcntl.h> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // This struct encapsulates the data Omaha gets for the update check. | 29 // This struct encapsulates the data Omaha gets for the update check. |
| 30 // These strings in this struct should not be XML escaped. | 30 // These strings in this struct should not be XML escaped. |
| 31 struct UpdateCheckParams { | 31 struct UpdateCheckParams { |
| 32 UpdateCheckParams() | 32 UpdateCheckParams() |
| 33 : os_platform(kOsPlatform), os_version(kOsVersion), app_id(kAppId) {} | 33 : os_platform(kOsPlatform), os_version(kOsVersion), app_id(kAppId) {} |
| 34 UpdateCheckParams(const std::string& in_machine_id, | 34 UpdateCheckParams(const std::string& in_machine_id, |
| 35 const std::string& in_user_id, | 35 const std::string& in_user_id, |
| 36 const std::string& in_os_platform, | 36 const std::string& in_os_platform, |
| 37 const std::string& in_os_version, | 37 const std::string& in_os_version, |
| 38 const std::string& in_os_sp, | 38 const std::string& in_os_sp, |
| 39 const std::string& in_os_board, |
| 39 const std::string& in_app_id, | 40 const std::string& in_app_id, |
| 40 const std::string& in_app_version, | 41 const std::string& in_app_version, |
| 41 const std::string& in_app_lang, | 42 const std::string& in_app_lang, |
| 42 const std::string& in_app_track, | 43 const std::string& in_app_track, |
| 43 const std::string& in_update_url) | 44 const std::string& in_update_url) |
| 44 : machine_id(in_machine_id), | 45 : machine_id(in_machine_id), |
| 45 user_id(in_user_id), | 46 user_id(in_user_id), |
| 46 os_platform(in_os_platform), | 47 os_platform(in_os_platform), |
| 47 os_version(in_os_version), | 48 os_version(in_os_version), |
| 48 os_sp(in_os_sp), | 49 os_sp(in_os_sp), |
| 50 os_board(in_os_board), |
| 49 app_id(in_app_id), | 51 app_id(in_app_id), |
| 50 app_version(in_app_version), | 52 app_version(in_app_version), |
| 51 app_lang(in_app_lang), | 53 app_lang(in_app_lang), |
| 52 app_track(in_app_track), | 54 app_track(in_app_track), |
| 53 update_url(in_update_url) {} | 55 update_url(in_update_url) {} |
| 54 | 56 |
| 55 std::string machine_id; | 57 std::string machine_id; |
| 56 std::string user_id; | 58 std::string user_id; |
| 57 std::string os_platform; | 59 std::string os_platform; |
| 58 std::string os_version; | 60 std::string os_version; |
| 59 std::string os_sp; | 61 std::string os_sp; |
| 62 std::string os_board; |
| 60 std::string app_id; | 63 std::string app_id; |
| 61 std::string app_version; | 64 std::string app_version; |
| 62 std::string app_lang; | 65 std::string app_lang; |
| 63 std::string app_track; | 66 std::string app_track; |
| 64 | 67 |
| 65 std::string update_url; | 68 std::string update_url; |
| 66 | 69 |
| 67 // Suggested defaults | 70 // Suggested defaults |
| 68 static const char* const kAppId; | 71 static const char* const kAppId; |
| 69 static const char* const kOsPlatform; | 72 static const char* const kOsPlatform; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 139 |
| 137 // Stores the response from the omaha server | 140 // Stores the response from the omaha server |
| 138 std::vector<char> response_buffer_; | 141 std::vector<char> response_buffer_; |
| 139 | 142 |
| 140 DISALLOW_COPY_AND_ASSIGN(UpdateCheckAction); | 143 DISALLOW_COPY_AND_ASSIGN(UpdateCheckAction); |
| 141 }; | 144 }; |
| 142 | 145 |
| 143 } // namespace chromeos_update_engine | 146 } // namespace chromeos_update_engine |
| 144 | 147 |
| 145 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__ | 148 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__ |
| OLD | NEW |