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

Side by Side Diff: chromeos/dbus/fake_update_engine_client.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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
OLDNEW
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_FAKE_UPDATE_ENGINE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 return request_update_check_call_count_; 69 return request_update_check_call_count_;
70 } 70 }
71 71
72 // Returns how many times Rollback() is called. 72 // Returns how many times Rollback() is called.
73 int rollback_call_count() const { return rollback_call_count_; } 73 int rollback_call_count() const { return rollback_call_count_; }
74 74
75 // Returns how many times Rollback() is called. 75 // Returns how many times Rollback() is called.
76 int can_rollback_call_count() const { return can_rollback_call_count_; } 76 int can_rollback_call_count() const { return can_rollback_call_count_; }
77 77
78 private: 78 private:
79 ObserverList<Observer> observers_; 79 base::ObserverList<Observer> observers_;
80 std::queue<UpdateEngineClient::Status> status_queue_; 80 std::queue<UpdateEngineClient::Status> status_queue_;
81 UpdateEngineClient::Status default_status_; 81 UpdateEngineClient::Status default_status_;
82 UpdateEngineClient::UpdateCheckResult update_check_result_; 82 UpdateEngineClient::UpdateCheckResult update_check_result_;
83 bool can_rollback_stub_result_; 83 bool can_rollback_stub_result_;
84 int reboot_after_update_call_count_; 84 int reboot_after_update_call_count_;
85 int request_update_check_call_count_; 85 int request_update_check_call_count_;
86 int rollback_call_count_; 86 int rollback_call_count_;
87 int can_rollback_call_count_; 87 int can_rollback_call_count_;
88 }; 88 };
89 89
90 } // namespace chromeos 90 } // namespace chromeos
91 91
92 #endif // CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_ 92 #endif // CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_shill_manager_client.h ('k') | chromeos/dbus/leadership_daemon_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698