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

Side by Side Diff: omaha_request_action.h

Issue 3044003: AU: send success events to Omaha at more points in the update process. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | update_attempter.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) 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_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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // This struct encapsulates the Omaha event information. For a 49 // This struct encapsulates the Omaha event information. For a
50 // complete list of defined event types and results, see 50 // complete list of defined event types and results, see
51 // http://code.google.com/p/omaha/wiki/ServerProtocol#event 51 // http://code.google.com/p/omaha/wiki/ServerProtocol#event
52 struct OmahaEvent { 52 struct OmahaEvent {
53 enum Type { 53 enum Type {
54 kTypeUnknown = 0, 54 kTypeUnknown = 0,
55 kTypeDownloadComplete = 1, 55 kTypeDownloadComplete = 1,
56 kTypeInstallComplete = 2, 56 kTypeInstallComplete = 2,
57 kTypeUpdateComplete = 3, 57 kTypeUpdateComplete = 3,
58 kTypeUpdateDownloadStarted = 13,
59 kTypeUpdateDownloadFinished = 14,
58 }; 60 };
59 61
60 enum Result { 62 enum Result {
61 kResultError = 0, 63 kResultError = 0,
62 kResultSuccess = 1, 64 kResultSuccess = 1,
63 }; 65 };
64 66
65 OmahaEvent() 67 OmahaEvent()
66 : type(kTypeUnknown), 68 : type(kTypeUnknown),
67 result(kResultError), 69 result(kResultError),
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 142
141 // Stores the response from the omaha server 143 // Stores the response from the omaha server
142 std::vector<char> response_buffer_; 144 std::vector<char> response_buffer_;
143 145
144 DISALLOW_COPY_AND_ASSIGN(OmahaRequestAction); 146 DISALLOW_COPY_AND_ASSIGN(OmahaRequestAction);
145 }; 147 };
146 148
147 } // namespace chromeos_update_engine 149 } // namespace chromeos_update_engine
148 150
149 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_ACTION_H__ 151 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_ACTION_H__
OLDNEW
« no previous file with comments | « no previous file | update_attempter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698