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_OMAHA_REQUEST_ACTION_H__ | 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_ACTION_H__ |
6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_ACTION_H__ | 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 bool update_exists; | 83 bool update_exists; |
84 | 84 |
85 // These are only valid if update_exists is true: | 85 // These are only valid if update_exists is true: |
86 std::string display_version; | 86 std::string display_version; |
87 std::string codebase; | 87 std::string codebase; |
88 std::string more_info_url; | 88 std::string more_info_url; |
89 std::string hash; | 89 std::string hash; |
90 off_t size; | 90 off_t size; |
91 bool needs_admin; | 91 bool needs_admin; |
92 bool prompt; | 92 bool prompt; |
| 93 bool is_delta; |
93 }; | 94 }; |
94 COMPILE_ASSERT(sizeof(off_t) == 8, off_t_not_64bit); | 95 COMPILE_ASSERT(sizeof(off_t) == 8, off_t_not_64bit); |
95 | 96 |
96 // This struct encapsulates the Omaha event information. For a | 97 // This struct encapsulates the Omaha event information. For a |
97 // complete list of defined event types and results, see | 98 // complete list of defined event types and results, see |
98 // http://code.google.com/p/omaha/wiki/ServerProtocol#event | 99 // http://code.google.com/p/omaha/wiki/ServerProtocol#event |
99 struct OmahaEvent { | 100 struct OmahaEvent { |
100 enum Type { | 101 enum Type { |
101 kTypeUnknown = 0, | 102 kTypeUnknown = 0, |
102 kTypeDownloadComplete = 1, | 103 kTypeDownloadComplete = 1, |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 186 |
186 // Stores the response from the omaha server | 187 // Stores the response from the omaha server |
187 std::vector<char> response_buffer_; | 188 std::vector<char> response_buffer_; |
188 | 189 |
189 DISALLOW_COPY_AND_ASSIGN(OmahaRequestAction); | 190 DISALLOW_COPY_AND_ASSIGN(OmahaRequestAction); |
190 }; | 191 }; |
191 | 192 |
192 } // namespace chromeos_update_engine | 193 } // namespace chromeos_update_engine |
193 | 194 |
194 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_ACTION_H__ | 195 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_ACTION_H__ |
OLD | NEW |