| 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_CONTENT_CONTENT_RULES_REGISTRY
_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_RULES_REGISTRY
_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_RULES_REGISTRY
_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_RULES_REGISTRY
_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/memory/linked_ptr.h" | 13 #include "base/memory/linked_ptr.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 #include "chrome/browser/extensions/api/declarative/declarative_rule.h" | 17 #include "chrome/browser/extensions/api/declarative/declarative_rule.h" |
| 18 #include "chrome/browser/extensions/api/declarative/rules_registry.h" | 18 #include "chrome/browser/extensions/api/declarative/rules_registry.h" |
| 19 #include "chrome/browser/extensions/api/declarative_content/content_action.h" | 19 #include "chrome/browser/extensions/api/declarative_content/content_action.h" |
| 20 #include "chrome/browser/extensions/api/declarative_content/content_condition.h" | 20 #include "chrome/browser/extensions/api/declarative_content/content_condition.h" |
| 21 #include "chrome/browser/extensions/extension_info_map.h" | |
| 22 #include "content/public/browser/notification_observer.h" | 21 #include "content/public/browser/notification_observer.h" |
| 23 #include "content/public/browser/notification_registrar.h" | 22 #include "content/public/browser/notification_registrar.h" |
| 23 #include "extensions/browser/info_map.h" |
| 24 #include "extensions/common/matcher/url_matcher.h" | 24 #include "extensions/common/matcher/url_matcher.h" |
| 25 | 25 |
| 26 class Profile; | 26 class Profile; |
| 27 class ContentPermissions; | 27 class ContentPermissions; |
| 28 | 28 |
| 29 namespace content { | 29 namespace content { |
| 30 class RenderProcessHost; | 30 class RenderProcessHost; |
| 31 class WebContents; | 31 class WebContents; |
| 32 struct FrameNavigateParams; | 32 struct FrameNavigateParams; |
| 33 struct LoadCommittedDetails; | 33 struct LoadCommittedDetails; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 // Matches URLs for the page_url condition. | 133 // Matches URLs for the page_url condition. |
| 134 URLMatcher url_matcher_; | 134 URLMatcher url_matcher_; |
| 135 | 135 |
| 136 // All CSS selectors any rule's conditions watch for. | 136 // All CSS selectors any rule's conditions watch for. |
| 137 std::vector<std::string> watched_css_selectors_; | 137 std::vector<std::string> watched_css_selectors_; |
| 138 | 138 |
| 139 // Manages our notification registrations. | 139 // Manages our notification registrations. |
| 140 content::NotificationRegistrar registrar_; | 140 content::NotificationRegistrar registrar_; |
| 141 | 141 |
| 142 scoped_refptr<ExtensionInfoMap> extension_info_map_; | 142 scoped_refptr<InfoMap> extension_info_map_; |
| 143 | 143 |
| 144 DISALLOW_COPY_AND_ASSIGN(ContentRulesRegistry); | 144 DISALLOW_COPY_AND_ASSIGN(ContentRulesRegistry); |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 } // namespace extensions | 147 } // namespace extensions |
| 148 | 148 |
| 149 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_RULES_REGIS
TRY_H_ | 149 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_RULES_REGIS
TRY_H_ |
| OLD | NEW |