| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium 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 CHROME_BROWSER_CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "chrome/browser/chromeos/dbus/dbus_client_implementation_type.h" | 10 #include "chromeos/chromeos_export.h" |
| 11 #include "chromeos/dbus/dbus_client_implementation_type.h" |
| 11 | 12 |
| 12 #include <string> | 13 #include <string> |
| 13 | 14 |
| 14 namespace dbus { | 15 namespace dbus { |
| 15 class Bus; | 16 class Bus; |
| 16 } // namespace | 17 } // namespace |
| 17 | 18 |
| 18 namespace chromeos { | 19 namespace chromeos { |
| 19 | 20 |
| 20 // UpdateEngineClient is used to communicate with the update engine. | 21 // UpdateEngineClient is used to communicate with the update engine. |
| 21 class UpdateEngineClient { | 22 class CHROMEOS_EXPORT UpdateEngineClient { |
| 22 public: | 23 public: |
| 23 // Edges for state machine | 24 // Edges for state machine |
| 24 // IDLE->CHECKING_FOR_UPDATE | 25 // IDLE->CHECKING_FOR_UPDATE |
| 25 // CHECKING_FOR_UPDATE->IDLE | 26 // CHECKING_FOR_UPDATE->IDLE |
| 26 // CHECKING_FOR_UPDATE->UPDATE_AVAILABLE | 27 // CHECKING_FOR_UPDATE->UPDATE_AVAILABLE |
| 27 // ... | 28 // ... |
| 28 // FINALIZING->UPDATE_NEED_REBOOT | 29 // FINALIZING->UPDATE_NEED_REBOOT |
| 29 // Any state can transition to REPORTING_ERROR_EVENT and then on to IDLE. | 30 // Any state can transition to REPORTING_ERROR_EVENT and then on to IDLE. |
| 30 enum UpdateStatusOperation { | 31 enum UpdateStatusOperation { |
| 31 UPDATE_STATUS_ERROR = -1, | 32 UPDATE_STATUS_ERROR = -1, |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 protected: | 116 protected: |
| 116 // Create() should be used instead. | 117 // Create() should be used instead. |
| 117 UpdateEngineClient(); | 118 UpdateEngineClient(); |
| 118 | 119 |
| 119 private: | 120 private: |
| 120 DISALLOW_COPY_AND_ASSIGN(UpdateEngineClient); | 121 DISALLOW_COPY_AND_ASSIGN(UpdateEngineClient); |
| 121 }; | 122 }; |
| 122 | 123 |
| 123 } // namespace chromeos | 124 } // namespace chromeos |
| 124 | 125 |
| 125 #endif // CHROME_BROWSER_CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ | 126 #endif // CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ |
| OLD | NEW |