| 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_RULES_REGISTRY_
H_ | 5 #ifndef EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_RULES_REGISTRY_
H_ |
| 6 #define EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_RULES_REGISTRY_
H_ | 6 #define EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_RULES_REGISTRY_
H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <set> | 11 #include <set> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/linked_ptr.h" | 17 #include "base/memory/linked_ptr.h" |
| 18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
| 20 #include "components/url_matcher/url_matcher.h" | 20 #include "components/url_matcher/url_matcher.h" |
| 21 #include "extensions/browser/api/declarative/declarative_rule.h" | 21 #include "extensions/browser/api/declarative/declarative_rule.h" |
| 22 #include "extensions/browser/api/declarative/rules_registry.h" | 22 #include "extensions/browser/api/declarative/rules_registry.h" |
| 23 #include "extensions/browser/api/declarative_webrequest/request_stage.h" | 23 #include "extensions/browser/api/declarative_webrequest/request_stage.h" |
| 24 #include "extensions/browser/api/declarative_webrequest/webrequest_action.h" | 24 #include "extensions/browser/api/declarative_webrequest/webrequest_action.h" |
| 25 #include "extensions/browser/api/declarative_webrequest/webrequest_condition.h" | 25 #include "extensions/browser/api/declarative_webrequest/webrequest_condition.h" |
| 26 #include "extensions/browser/info_map.h" | 26 #include "extensions/browser/info_map.h" |
| 27 #include "extensions/common/extension_id.h" | 27 #include "extensions/common/extension_id.h" |
| 28 | 28 |
| 29 class WebRequestPermissions; | |
| 30 | |
| 31 namespace content { | 29 namespace content { |
| 32 class BrowserContext; | 30 class BrowserContext; |
| 33 } | 31 } |
| 34 | 32 |
| 35 namespace extension_web_request_api_helpers { | 33 namespace extension_web_request_api_helpers { |
| 36 struct EventResponseDelta; | 34 struct EventResponseDelta; |
| 37 } | 35 } |
| 38 | 36 |
| 39 namespace net { | |
| 40 class URLRequest; | |
| 41 } | |
| 42 | |
| 43 namespace extensions { | 37 namespace extensions { |
| 44 | 38 |
| 45 class RulesRegistryService; | |
| 46 | |
| 47 typedef linked_ptr<extension_web_request_api_helpers::EventResponseDelta> | 39 typedef linked_ptr<extension_web_request_api_helpers::EventResponseDelta> |
| 48 LinkedPtrEventResponseDelta; | 40 LinkedPtrEventResponseDelta; |
| 49 typedef DeclarativeRule<WebRequestCondition, WebRequestAction> WebRequestRule; | 41 typedef DeclarativeRule<WebRequestCondition, WebRequestAction> WebRequestRule; |
| 50 | 42 |
| 51 // The WebRequestRulesRegistry is responsible for managing | 43 // The WebRequestRulesRegistry is responsible for managing |
| 52 // the internal representation of rules for the Declarative Web Request API. | 44 // the internal representation of rules for the Declarative Web Request API. |
| 53 // | 45 // |
| 54 // Here is the high level overview of this functionality: | 46 // Here is the high level overview of this functionality: |
| 55 // | 47 // |
| 56 // api::events::Rule consists of Conditions and Actions, these are | 48 // api::events::Rule consists of Conditions and Actions, these are |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 181 |
| 190 content::BrowserContext* browser_context_; | 182 content::BrowserContext* browser_context_; |
| 191 scoped_refptr<InfoMap> extension_info_map_; | 183 scoped_refptr<InfoMap> extension_info_map_; |
| 192 | 184 |
| 193 DISALLOW_COPY_AND_ASSIGN(WebRequestRulesRegistry); | 185 DISALLOW_COPY_AND_ASSIGN(WebRequestRulesRegistry); |
| 194 }; | 186 }; |
| 195 | 187 |
| 196 } // namespace extensions | 188 } // namespace extensions |
| 197 | 189 |
| 198 #endif // EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_RULES_REGIST
RY_H_ | 190 #endif // EXTENSIONS_BROWSER_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_RULES_REGIST
RY_H_ |
| OLD | NEW |