Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Side by Side Diff: omaha_request_action.h

Issue 2805027: AU: Changes for deltas on traditional bios machines. (Closed) Base URL: ssh://git@chromiumos-git/update_engine.git
Patch Set: fixes for review and merging in petkov's recent changes Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « libcurl_http_fetcher.cc ('k') | omaha_request_action.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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__
OLDNEW
« no previous file with comments | « libcurl_http_fetcher.cc ('k') | omaha_request_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698