| 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_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITION_H_ |
| 6 #define EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITION_H_ | 6 #define EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITION_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
| 15 #include "components/url_matcher/url_matcher.h" | 15 #include "components/url_matcher/url_matcher.h" |
| 16 #include "extensions/browser/api/declarative/declarative_rule.h" | 16 #include "extensions/browser/api/declarative/declarative_rule.h" |
| 17 #include "extensions/browser/api/declarative_webrequest/webrequest_condition_att
ribute.h" | 17 #include "extensions/browser/api/declarative_webrequest/webrequest_condition_att
ribute.h" |
| 18 #include "net/http/http_response_headers.h" | 18 #include "net/http/http_response_headers.h" |
| 19 | 19 |
| 20 namespace net { |
| 21 class URLRequest; |
| 22 } |
| 23 |
| 20 namespace extensions { | 24 namespace extensions { |
| 21 class ExtensionNavigationUIData; | 25 class ExtensionNavigationUIData; |
| 22 | 26 |
| 23 // Container for information about a URLRequest to determine which | 27 // Container for information about a URLRequest to determine which |
| 24 // rules apply to the request. | 28 // rules apply to the request. |
| 25 struct WebRequestData { | 29 struct WebRequestData { |
| 26 WebRequestData(net::URLRequest* request, RequestStage stage); | 30 WebRequestData(net::URLRequest* request, RequestStage stage); |
| 27 WebRequestData(net::URLRequest* request, | 31 WebRequestData(net::URLRequest* request, |
| 28 RequestStage stage, | 32 RequestStage stage, |
| 29 ExtensionNavigationUIData* navigation_ui_data, | 33 ExtensionNavigationUIData* navigation_ui_data, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 int applicable_request_stages_; | 116 int applicable_request_stages_; |
| 113 | 117 |
| 114 DISALLOW_COPY_AND_ASSIGN(WebRequestCondition); | 118 DISALLOW_COPY_AND_ASSIGN(WebRequestCondition); |
| 115 }; | 119 }; |
| 116 | 120 |
| 117 typedef DeclarativeConditionSet<WebRequestCondition> WebRequestConditionSet; | 121 typedef DeclarativeConditionSet<WebRequestCondition> WebRequestConditionSet; |
| 118 | 122 |
| 119 } // namespace extensions | 123 } // namespace extensions |
| 120 | 124 |
| 121 #endif // EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITION_H_ | 125 #endif // EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITION_H_ |
| OLD | NEW |