| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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( | 83 static scoped_ptr<URLMatcherSchemeFilter> CreateURLMatcherScheme( |
| 84 const base::Value* value, std::string* error); | 84 const base::Value* value, std::string* error); |
| 85 | 85 |
| 86 static scoped_ptr<URLMatcherPortFilter> CreateURLMatcherPorts( |
| 87 const base::Value* value, std::string* error); |
| 88 |
| 86 scoped_refptr<URLMatcherConditionSet> url_matcher_conditions_; | 89 scoped_refptr<URLMatcherConditionSet> url_matcher_conditions_; |
| 87 WebRequestConditionAttributes condition_attributes_; | 90 WebRequestConditionAttributes condition_attributes_; |
| 88 | 91 |
| 89 // Bit vector indicating all RequestStages during which all | 92 // Bit vector indicating all RequestStages during which all |
| 90 // |condition_attributes_| can be evaluated. | 93 // |condition_attributes_| can be evaluated. |
| 91 int applicable_request_stages_; | 94 int applicable_request_stages_; |
| 92 | 95 |
| 93 DISALLOW_COPY_AND_ASSIGN(WebRequestCondition); | 96 DISALLOW_COPY_AND_ASSIGN(WebRequestCondition); |
| 94 }; | 97 }; |
| 95 | 98 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 typedef std::map<URLMatcherConditionSet::ID, WebRequestCondition*> | 139 typedef std::map<URLMatcherConditionSet::ID, WebRequestCondition*> |
| 137 MatchTriggers; | 140 MatchTriggers; |
| 138 MatchTriggers match_triggers_; | 141 MatchTriggers match_triggers_; |
| 139 | 142 |
| 140 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionSet); | 143 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionSet); |
| 141 }; | 144 }; |
| 142 | 145 |
| 143 } // namespace extensions | 146 } // namespace extensions |
| 144 | 147 |
| 145 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDI
TION_H_ | 148 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDI
TION_H_ |
| OLD | NEW |