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 CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ |
6 #define CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 #include "chromeos/chromeos_export.h" | 15 #include "chromeos/chromeos_export.h" |
16 #include "chromeos/dbus/dbus_client.h" | 16 #include "chromeos/dbus/dbus_client.h" |
17 #include "chromeos/dbus/dbus_client_types.h" | 17 #include "chromeos/dbus/dbus_client_implementation_type.h" |
18 #include "third_party/cros_system_api/dbus/update_engine/dbus-constants.h" | 18 #include "third_party/cros_system_api/dbus/update_engine/dbus-constants.h" |
19 | 19 |
20 namespace chromeos { | 20 namespace chromeos { |
21 | 21 |
22 // UpdateEngineClient is used to communicate with the update engine. | 22 // UpdateEngineClient is used to communicate with the update engine. |
23 class CHROMEOS_EXPORT UpdateEngineClient : public DBusClient { | 23 class CHROMEOS_EXPORT UpdateEngineClient : public DBusClient { |
24 public: | 24 public: |
25 // Edges for state machine | 25 // Edges for state machine |
26 // IDLE->CHECKING_FOR_UPDATE | 26 // IDLE->CHECKING_FOR_UPDATE |
27 // CHECKING_FOR_UPDATE->IDLE | 27 // CHECKING_FOR_UPDATE->IDLE |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 // Create() should be used instead. | 156 // Create() should be used instead. |
157 UpdateEngineClient(); | 157 UpdateEngineClient(); |
158 | 158 |
159 private: | 159 private: |
160 DISALLOW_COPY_AND_ASSIGN(UpdateEngineClient); | 160 DISALLOW_COPY_AND_ASSIGN(UpdateEngineClient); |
161 }; | 161 }; |
162 | 162 |
163 } // namespace chromeos | 163 } // namespace chromeos |
164 | 164 |
165 #endif // CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ | 165 #endif // CHROMEOS_DBUS_UPDATE_ENGINE_CLIENT_H_ |
OLD | NEW |