| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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__ |
| OLD | NEW |