1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/extensions/api/declarative_content/default_content_predicate_evaluators.h"
7 #include "chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.h"
8 #include "chrome/browser/extensions/api/declarative_content/declarative_content_is_bookmarked_condition_tracker.h"
9 #include "chrome/browser/extensions/api/declarative_content/declarative_content_page_url_condition_tracker.h"
11 namespace extensions
{
13 ScopedVector
<ContentPredicateEvaluator
> CreateDefaultContentPredicateEvaluators(
14 content::BrowserContext
* browser_context
,
15 ContentPredicateEvaluator::Delegate
* delegate
) {
16 ScopedVector
<ContentPredicateEvaluator
> evaluators
;
17 evaluators
.push_back(new DeclarativeContentPageUrlConditionTracker(delegate
));
18 evaluators
.push_back(new DeclarativeContentCssConditionTracker(delegate
));
19 evaluators
.push_back(new DeclarativeContentIsBookmarkedConditionTracker(
22 return evaluators
.Pass();
25 } // namespace extensions