OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITIO
N_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITIO
N_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITIO
N_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITIO
N_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" |
13 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_condit
ion_attribute.h" | 13 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_condit
ion_attribute.h" |
| 14 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_rule.h
" |
14 #include "chrome/common/extensions/matcher/url_matcher.h" | 15 #include "chrome/common/extensions/matcher/url_matcher.h" |
15 | 16 |
16 namespace extensions { | 17 namespace extensions { |
17 | 18 |
18 // Representation of a condition in the Declarative WebRequest API. A condition | 19 // Representation of a condition in the Declarative WebRequest API. A condition |
19 // consists of several attributes. Each of these attributes needs to be | 20 // consists of several attributes. Each of these attributes needs to be |
20 // fulfilled in order for the condition to be fulfilled. | 21 // fulfilled in order for the condition to be fulfilled. |
21 // | 22 // |
22 // We distinguish between two types of conditions: | 23 // We distinguish between two types of conditions: |
23 // - URL Matcher conditions are conditions that test the URL of a request. | 24 // - URL Matcher conditions are conditions that test the URL of a request. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 typedef std::map<URLMatcherConditionSet::ID, WebRequestCondition*> | 121 typedef std::map<URLMatcherConditionSet::ID, WebRequestCondition*> |
121 MatchTriggers; | 122 MatchTriggers; |
122 MatchTriggers match_triggers_; | 123 MatchTriggers match_triggers_; |
123 | 124 |
124 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionSet); | 125 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionSet); |
125 }; | 126 }; |
126 | 127 |
127 } // namespace extensions | 128 } // namespace extensions |
128 | 129 |
129 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDI
TION_H_ | 130 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDI
TION_H_ |
OLD | NEW |