| 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 EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITION_ATTRI
BUTE_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITION_ATTRI
BUTE_H_ |
| 6 #define EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITION_ATTRI
BUTE_H_ | 6 #define EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITION_ATTRI
BUTE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "content/public/common/resource_type.h" | 14 #include "content/public/common/resource_type.h" |
| 15 #include "extensions/browser/api/declarative_webrequest/request_stage.h" | 15 #include "extensions/browser/api/declarative_webrequest/request_stage.h" |
| 16 #include "extensions/common/api/events.h" | 16 #include "extensions/common/api/events.h" |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class Value; | 19 class Value; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace net { | |
| 23 class URLRequest; | |
| 24 } | |
| 25 | |
| 26 namespace extensions { | 22 namespace extensions { |
| 27 | 23 |
| 28 class HeaderMatcher; | 24 class HeaderMatcher; |
| 29 struct WebRequestData; | 25 struct WebRequestData; |
| 30 | 26 |
| 31 // Base class for all condition attributes of the declarative Web Request API | 27 // Base class for all condition attributes of the declarative Web Request API |
| 32 // except for condition attribute to test URLPatterns. | 28 // except for condition attribute to test URLPatterns. |
| 33 class WebRequestConditionAttribute | 29 class WebRequestConditionAttribute |
| 34 : public base::RefCounted<WebRequestConditionAttribute> { | 30 : public base::RefCounted<WebRequestConditionAttribute> { |
| 35 public: | 31 public: |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 ~WebRequestConditionAttributeStages() override; | 258 ~WebRequestConditionAttributeStages() override; |
| 263 | 259 |
| 264 const int allowed_stages_; // Composition of RequestStage values. | 260 const int allowed_stages_; // Composition of RequestStage values. |
| 265 | 261 |
| 266 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionAttributeStages); | 262 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionAttributeStages); |
| 267 }; | 263 }; |
| 268 | 264 |
| 269 } // namespace extensions | 265 } // namespace extensions |
| 270 | 266 |
| 271 #endif // EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITION_AT
TRIBUTE_H_ | 267 #endif // EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITION_AT
TRIBUTE_H_ |
| OLD | NEW |