Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: chrome/browser/extensions/api/declarative/declarative_rule.h

Issue 12092096: Move c/c/extensions/matcher/ to top level extension dir (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TOT Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/declarative/declarative_rule_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // DeclarativeRule<>, DeclarativeConditionSet<>, and DeclarativeActionSet<> 5 // DeclarativeRule<>, DeclarativeConditionSet<>, and DeclarativeActionSet<>
6 // templates usable with multiple different declarativeFoo systems. These are 6 // templates usable with multiple different declarativeFoo systems. These are
7 // templated on the Condition and Action types that define the behavior of a 7 // templated on the Condition and Action types that define the behavior of a
8 // particular declarative event. 8 // particular declarative event.
9 9
10 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_RULE_H__ 10 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_RULE_H__
11 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_RULE_H__ 11 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_RULE_H__
12 12
13 #include <limits> 13 #include <limits>
14 #include <set> 14 #include <set>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "base/memory/linked_ptr.h" 18 #include "base/memory/linked_ptr.h"
19 #include "base/memory/scoped_vector.h" 19 #include "base/memory/scoped_vector.h"
20 #include "base/stl_util.h" 20 #include "base/stl_util.h"
21 #include "base/time.h" 21 #include "base/time.h"
22 #include "chrome/common/extensions/api/events.h" 22 #include "chrome/common/extensions/api/events.h"
23 #include "chrome/common/extensions/matcher/url_matcher.h" 23 #include "extensions/common/matcher/url_matcher.h"
24 24
25 namespace base { 25 namespace base {
26 class Time; 26 class Time;
27 class Value; 27 class Value;
28 } 28 }
29 29
30 namespace extensions { 30 namespace extensions {
31 31
32 // This class stores a set of conditions that may be part of a DeclarativeRule. 32 // This class stores a set of conditions that may be part of a DeclarativeRule.
33 // If any condition is fulfilled, the Actions of the DeclarativeRule can be 33 // If any condition is fulfilled, the Actions of the DeclarativeRule can be
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 } 466 }
467 467
468 template<typename ConditionT, typename ActionT> 468 template<typename ConditionT, typename ActionT>
469 int DeclarativeRule<ConditionT, ActionT>::GetMinimumPriority() const { 469 int DeclarativeRule<ConditionT, ActionT>::GetMinimumPriority() const {
470 return actions_->GetMinimumPriority(); 470 return actions_->GetMinimumPriority();
471 } 471 }
472 472
473 } // namespace extensions 473 } // namespace extensions
474 474
475 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_RULE_H__ 475 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_DECLARATIVE_RULE_H__
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/declarative/declarative_rule_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698