OLD | NEW |
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 Loading... |
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 Loading... |
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__ |
OLD | NEW |