| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 static bool IsURLMatcherConditionAttribute( | 73 static bool IsURLMatcherConditionAttribute( |
| 74 const std::string& condition_attribute_name); | 74 const std::string& condition_attribute_name); |
| 75 | 75 |
| 76 // Factory method of for URLMatcherConditions. | 76 // Factory method of for URLMatcherConditions. |
| 77 static URLMatcherCondition CreateURLMatcherCondition( | 77 static URLMatcherCondition CreateURLMatcherCondition( |
| 78 URLMatcherConditionFactory* url_matcher_condition_factory, | 78 URLMatcherConditionFactory* url_matcher_condition_factory, |
| 79 const std::string& condition_attribute_name, | 79 const std::string& condition_attribute_name, |
| 80 const base::Value* value, | 80 const base::Value* value, |
| 81 std::string* error); | 81 std::string* error); |
| 82 | 82 |
| 83 static scoped_ptr<URLMatcherSchemeFilter> CreateURLMatcherScheme( |
| 84 const base::Value* value, std::string* error); |
| 85 |
| 83 scoped_refptr<URLMatcherConditionSet> url_matcher_conditions_; | 86 scoped_refptr<URLMatcherConditionSet> url_matcher_conditions_; |
| 84 WebRequestConditionAttributes condition_attributes_; | 87 WebRequestConditionAttributes condition_attributes_; |
| 85 | 88 |
| 86 // Bit vector indicating all RequestStages during which all | 89 // Bit vector indicating all RequestStages during which all |
| 87 // |condition_attributes_| can be evaluated. | 90 // |condition_attributes_| can be evaluated. |
| 88 int applicable_request_stages_; | 91 int applicable_request_stages_; |
| 89 | 92 |
| 90 DISALLOW_COPY_AND_ASSIGN(WebRequestCondition); | 93 DISALLOW_COPY_AND_ASSIGN(WebRequestCondition); |
| 91 }; | 94 }; |
| 92 | 95 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 typedef std::map<URLMatcherConditionSet::ID, WebRequestCondition*> | 136 typedef std::map<URLMatcherConditionSet::ID, WebRequestCondition*> |
| 134 MatchTriggers; | 137 MatchTriggers; |
| 135 MatchTriggers match_triggers_; | 138 MatchTriggers match_triggers_; |
| 136 | 139 |
| 137 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionSet); | 140 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionSet); |
| 138 }; | 141 }; |
| 139 | 142 |
| 140 } // namespace extensions | 143 } // namespace extensions |
| 141 | 144 |
| 142 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDI
TION_H_ | 145 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDI
TION_H_ |
| OLD | NEW |