Home
last modified time | relevance | path

Searched refs:BaseVariable (Results 1 – 6 of 6) sorted by relevance

/system/update_engine/update_manager/
Dvariable.h56 class BaseVariable {
64 virtual void ValueChanged(BaseVariable* variable) = 0;
67 virtual ~BaseVariable() { in ~BaseVariable()
93 virtual void AddObserver(BaseVariable::ObserverInterface* observer) { in AddObserver()
100 virtual void RemoveObserver(BaseVariable::ObserverInterface* observer) { in RemoveObserver()
106 BaseVariable(const std::string& name, VariableMode mode) in BaseVariable() function
107 : BaseVariable( in BaseVariable()
112 BaseVariable(const std::string& name, base::TimeDelta poll_interval) in BaseVariable() function
113 : BaseVariable(name, kVariableModePoll, poll_interval) {} in BaseVariable()
132 base::Bind(&BaseVariable::OnValueChangedNotification, in NotifyValueChanged()
[all …]
Dvariable_unittest.cc85 class BaseVariableObserver : public BaseVariable::ObserverInterface {
87 void ValueChanged(BaseVariable* variable) { calls_.push_back(variable); } in ValueChanged()
90 vector<BaseVariable*> calls_;
132 class BaseVariableObserverRemover : public BaseVariable::ObserverInterface {
136 void ValueChanged(BaseVariable* variable) override { in ValueChanged()
143 void OnCallRemoveObserver(BaseVariable::ObserverInterface* observer) { in OnCallRemoveObserver()
150 vector<BaseVariable::ObserverInterface*> remove_observers_;
Devaluation_context.h63 class EvaluationContext : private BaseVariable::ObserverInterface {
130 void ValueChanged(BaseVariable* var) override;
149 typedef std::map<BaseVariable*, BoxedValue> ValueCacheMap;
Devaluation_context-inl.h48 value_cache_.emplace(static_cast<BaseVariable*>(var), BoxedValue(result)); in GetValue()
Dgeneric_variables_unittest.cc178 class CallCounterObserver : public BaseVariable::ObserverInterface {
180 void ValueChanged(BaseVariable* variable) { calls_count_++; } in ValueChanged()
Devaluation_context.cc111 void EvaluationContext::ValueChanged(BaseVariable* var) { in ValueChanged()