Lines Matching refs:Variable
33 // The VariableMode specifies important behavior of the variable in terms of
34 // whether, how and when the value of the variable changes.
41 // Poll variables, or synchronous variables, represent a variable with a value
44 // the variable changes, it has to be queried again.
55 // depend on the variable's type, implemented by all the variables.
58 // Interface for observing changes on variable value.
63 // Called when the value on the variable changes.
64 virtual void ValueChanged(BaseVariable* variable) = 0;
69 LOG(WARNING) << "Variable " << name_ << " deleted with "
72 DCHECK(observer_list_.empty()) << "Don't destroy the variable without "
76 // Returns the variable name as a string.
81 // Returns the variable mode.
87 // variable. In other case, it returns 0.
92 // Adds and removes observers for value changes on the variable. This only
117 // Reset the poll interval on a polling variable to the given one.
120 << mode_ << " variable";
168 // The variable's name as a string.
171 // The variable's mode.
174 // The variable's polling interval for VariableModePoll variable and 0 for
184 // Interface to an Update Manager variable of a given type. Implementation
188 class Variable : public BaseVariable {
190 ~Variable() override {}
194 // directly from the variable.
197 // Needed to be able to verify variable contents during unit testing.
201 Variable(const std::string& name, VariableMode mode)
204 Variable(const std::string& name, const base::TimeDelta poll_interval)
207 // Gets the current value of the variable. The current value is copied to a
219 DISALLOW_COPY_AND_ASSIGN(Variable);