Lines Matching defs:conditions
38 // This class stores a set of conditions that may be part of a DeclarativeRule.
63 typedef std::vector<linked_ptr<const ConditionT> > Conditions;
64 typedef typename Conditions::const_iterator const_iterator;
67 // according to the JSON array |conditions| passed by the extension API. Sets
72 const AnyVector& conditions,
75 const Conditions& conditions() const {
86 // of the conditions without URL attributes is satisfied.
90 // Appends the URLMatcherConditionSet from all conditions to |condition_sets|.
94 // Returns whether there are some conditions without UrlFilter attributes.
104 const Conditions& conditions,
109 const Conditions conditions_;
160 // Rules call this method when their conditions are fulfilled.
165 // Rules call this method when their conditions are fulfilled, but Apply has
171 // Rules call this method when they have stateful conditions, and those
172 // conditions stop being fulfilled. Rules with event-based conditions (e.g. a
209 // Checks whether the set of |conditions| and |actions| are consistent.
211 typedef base::Callback<bool(const ConditionSet* conditions,
218 scoped_ptr<ConditionSet> conditions,
226 // Before constructing the final rule, calls check_consistency(conditions,
242 const ConditionSet& conditions() const { return *conditions_; }
253 // this rule. Defaults to MIN_INT. Only valid if the conditions of this rule
279 // Invalid trigger -- indication that we should only check conditions
299 for (typename Conditions::const_iterator i = conditions_.begin();
311 const AnyVector& conditions,
313 Conditions result;
315 for (AnyVector::const_iterator i = conditions.begin();
316 i != conditions.end(); ++i) {
329 for (typename Conditions::const_iterator i = result.begin();
349 const Conditions& conditions,
353 conditions_(conditions),
439 scoped_ptr<ConditionSet> conditions,
445 conditions_(conditions.release()),
465 scoped_ptr<ConditionSet> conditions = ConditionSet::Create(
466 extension, url_matcher_condition_factory, rule->conditions, error);
469 CHECK(conditions.get());
487 !check_consistency.Run(conditions.get(), actions.get(), error)) {
499 conditions.Pass(), actions.Pass(), priority));