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

Side by Side Diff: omaha_request_action.h

Issue 5993007: AU: Send a previous version event after reboot following an update. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git@master
Patch Set: GetString appends to the string Created 9 years, 11 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 | 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) 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 kTypeDownloadComplete = 1, 63 kTypeDownloadComplete = 1,
64 kTypeInstallComplete = 2, 64 kTypeInstallComplete = 2,
65 kTypeUpdateComplete = 3, 65 kTypeUpdateComplete = 3,
66 kTypeUpdateDownloadStarted = 13, 66 kTypeUpdateDownloadStarted = 13,
67 kTypeUpdateDownloadFinished = 14, 67 kTypeUpdateDownloadFinished = 14,
68 }; 68 };
69 69
70 enum Result { 70 enum Result {
71 kResultError = 0, 71 kResultError = 0,
72 kResultSuccess = 1, 72 kResultSuccess = 1,
73 kResultSuccessReboot = 2,
73 }; 74 };
74 75
75 OmahaEvent() 76 OmahaEvent()
76 : type(kTypeUnknown), 77 : type(kTypeUnknown),
77 result(kResultError), 78 result(kResultError),
78 error_code(kActionCodeError) {} 79 error_code(kActionCodeError) {}
79 explicit OmahaEvent(Type in_type) 80 explicit OmahaEvent(Type in_type)
80 : type(in_type), 81 : type(in_type),
81 result(kResultSuccess), 82 result(kResultSuccess),
82 error_code(kActionCodeSuccess) {} 83 error_code(kActionCodeSuccess) {}
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // are sent to Omaha. 180 // are sent to Omaha.
180 int ping_active_days_; 181 int ping_active_days_;
181 int ping_roll_call_days_; 182 int ping_roll_call_days_;
182 183
183 DISALLOW_COPY_AND_ASSIGN(OmahaRequestAction); 184 DISALLOW_COPY_AND_ASSIGN(OmahaRequestAction);
184 }; 185 };
185 186
186 } // namespace chromeos_update_engine 187 } // namespace chromeos_update_engine
187 188
188 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_ACTION_H__ 189 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_ACTION_H__
OLDNEW
« no previous file with comments | « no previous file | omaha_request_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698