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_RULES_REGISTRY_SERVICE_H__ | 5 #ifndef EXTENSIONS_BROWSER_API_DECLARATIVE_RULES_REGISTRY_SERVICE_H__ |
6 #define EXTENSIONS_BROWSER_API_DECLARATIVE_RULES_REGISTRY_SERVICE_H__ | 6 #define EXTENSIONS_BROWSER_API_DECLARATIVE_RULES_REGISTRY_SERVICE_H__ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <tuple> | 10 #include <tuple> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/scoped_observer.h" | 16 #include "base/scoped_observer.h" |
17 #include "extensions/browser/api/declarative/rules_registry.h" | 17 #include "extensions/browser/api/declarative/rules_registry.h" |
18 #include "extensions/browser/browser_context_keyed_api_factory.h" | 18 #include "extensions/browser/browser_context_keyed_api_factory.h" |
19 #include "extensions/browser/extension_registry_observer.h" | 19 #include "extensions/browser/extension_registry_observer.h" |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 class BrowserContext; | 22 class BrowserContext; |
23 } | 23 } |
24 | 24 |
25 namespace extensions { | 25 namespace extensions { |
26 class ContentRulesRegistry; | 26 class ContentRulesRegistry; |
27 class ExtensionRegistry; | 27 class ExtensionRegistry; |
28 class RulesRegistryStorageDelegate; | |
29 } | 28 } |
30 | 29 |
31 namespace extensions { | 30 namespace extensions { |
32 | 31 |
33 // This class owns all RulesRegistries implementations of an ExtensionService. | 32 // This class owns all RulesRegistries implementations of an ExtensionService. |
34 // This class lives on the UI thread. | 33 // This class lives on the UI thread. |
35 class RulesRegistryService : public BrowserContextKeyedAPI, | 34 class RulesRegistryService : public BrowserContextKeyedAPI, |
36 public ExtensionRegistryObserver { | 35 public ExtensionRegistryObserver { |
37 public: | 36 public: |
38 static const int kDefaultRulesRegistryID; | 37 static const int kDefaultRulesRegistryID; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 extension_registry_observer_; | 143 extension_registry_observer_; |
145 | 144 |
146 content::BrowserContext* browser_context_; | 145 content::BrowserContext* browser_context_; |
147 | 146 |
148 DISALLOW_COPY_AND_ASSIGN(RulesRegistryService); | 147 DISALLOW_COPY_AND_ASSIGN(RulesRegistryService); |
149 }; | 148 }; |
150 | 149 |
151 } // namespace extensions | 150 } // namespace extensions |
152 | 151 |
153 #endif // EXTENSIONS_BROWSER_API_DECLARATIVE_RULES_REGISTRY_SERVICE_H__ | 152 #endif // EXTENSIONS_BROWSER_API_DECLARATIVE_RULES_REGISTRY_SERVICE_H__ |
OLD | NEW |