Lines Matching defs:EvaluationContext
37 // The EvaluationContext class is the interface between a policy implementation
38 // and the state. The EvaluationContext tracks the variables used by a policy
40 // The same EvaluationContext should be re-used for all the evaluations of the
42 // re-evaluations). Each evaluation of the EvaluationContext is run at a given
49 // scoped_refptr<EvaluationContext> ec = new EvaluationContext(...);
53 // // evaluation time if the EvaluationContext isn't used right after its
65 class EvaluationContext : public base::RefCounted<EvaluationContext>,
68 EvaluationContext(
72 std::unique_ptr<base::Callback<void(EvaluationContext*)>> unregister_cb);
73 EvaluationContext(chromeos_update_engine::ClockInterface* clock,
75 : EvaluationContext(
77 std::unique_ptr<base::Callback<void(EvaluationContext*)>>()) {}
78 ~EvaluationContext();
81 // EvaluationContext instance keeps the ownership of the returned object. The
101 // Resets the EvaluationContext to its initial state removing all the
106 // Clears the expiration status of the EvaluationContext and resets its
116 // Right before the passed closure is called the EvaluationContext is
179 // The timestamps when the evaluation of this EvaluationContext started,
209 std::unique_ptr<base::Callback<void(EvaluationContext*)>> unregister_cb_;
211 base::WeakPtrFactory<EvaluationContext> weak_ptr_factory_;
213 DISALLOW_COPY_AND_ASSIGN(EvaluationContext);