| 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_ATTRIBUTE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITIO
N_ATTRIBUTE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITIO
N_ATTRIBUTE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITIO
N_ATTRIBUTE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 const base::Value* value, | 124 const base::Value* value, |
| 125 std::string* error); | 125 std::string* error); |
| 126 | 126 |
| 127 // Implementation of WebRequestConditionAttribute: | 127 // Implementation of WebRequestConditionAttribute: |
| 128 virtual int GetStages() const OVERRIDE; | 128 virtual int GetStages() const OVERRIDE; |
| 129 virtual bool IsFulfilled( | 129 virtual bool IsFulfilled( |
| 130 const WebRequestRule::RequestData& request_data) const OVERRIDE; | 130 const WebRequestRule::RequestData& request_data) const OVERRIDE; |
| 131 virtual Type GetType() const OVERRIDE; | 131 virtual Type GetType() const OVERRIDE; |
| 132 | 132 |
| 133 private: | 133 private: |
| 134 explicit WebRequestConditionAttributeContentType( | 134 WebRequestConditionAttributeContentType( |
| 135 const std::vector<std::string>& include_content_types, | 135 const std::vector<std::string>& include_content_types, |
| 136 bool inclusive); | 136 bool inclusive); |
| 137 | 137 |
| 138 std::vector<std::string> content_types_; | 138 std::vector<std::string> content_types_; |
| 139 bool inclusive_; | 139 bool inclusive_; |
| 140 | 140 |
| 141 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionAttributeContentType); | 141 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionAttributeContentType); |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 // Condition attribute for matching against request headers. Uses HeaderMatcher | 144 // Condition attribute for matching against request headers. Uses HeaderMatcher |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 explicit WebRequestConditionAttributeStages(int allowed_stages); | 262 explicit WebRequestConditionAttributeStages(int allowed_stages); |
| 263 | 263 |
| 264 const int allowed_stages_; // Composition of RequestStage values. | 264 const int allowed_stages_; // Composition of RequestStage values. |
| 265 | 265 |
| 266 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionAttributeStages); | 266 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionAttributeStages); |
| 267 }; | 267 }; |
| 268 | 268 |
| 269 } // namespace extensions | 269 } // namespace extensions |
| 270 | 270 |
| 271 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDI
TION_ATTRIBUTE_H_ | 271 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDI
TION_ATTRIBUTE_H_ |
| OLD | NEW |