| 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 #include "extensions/browser/api/declarative/rules_registry_service.h" | 5 #include "extensions/browser/api/declarative/rules_registry_service.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 void RulesRegistryService::OnExtensionLoaded( | 209 void RulesRegistryService::OnExtensionLoaded( |
| 210 content::BrowserContext* browser_context, | 210 content::BrowserContext* browser_context, |
| 211 const Extension* extension) { | 211 const Extension* extension) { |
| 212 NotifyRegistriesHelper(&RulesRegistry::OnExtensionLoaded, extension); | 212 NotifyRegistriesHelper(&RulesRegistry::OnExtensionLoaded, extension); |
| 213 } | 213 } |
| 214 | 214 |
| 215 void RulesRegistryService::OnExtensionUnloaded( | 215 void RulesRegistryService::OnExtensionUnloaded( |
| 216 content::BrowserContext* browser_context, | 216 content::BrowserContext* browser_context, |
| 217 const Extension* extension, | 217 const Extension* extension, |
| 218 UnloadedExtensionInfo::Reason reason) { | 218 UnloadedExtensionReason reason) { |
| 219 NotifyRegistriesHelper(&RulesRegistry::OnExtensionUnloaded, extension); | 219 NotifyRegistriesHelper(&RulesRegistry::OnExtensionUnloaded, extension); |
| 220 } | 220 } |
| 221 | 221 |
| 222 void RulesRegistryService::OnExtensionUninstalled( | 222 void RulesRegistryService::OnExtensionUninstalled( |
| 223 content::BrowserContext* browser_context, | 223 content::BrowserContext* browser_context, |
| 224 const Extension* extension, | 224 const Extension* extension, |
| 225 extensions::UninstallReason reason) { | 225 extensions::UninstallReason reason) { |
| 226 NotifyRegistriesHelper(&RulesRegistry::OnExtensionUninstalled, extension); | 226 NotifyRegistriesHelper(&RulesRegistry::OnExtensionUninstalled, extension); |
| 227 } | 227 } |
| 228 | 228 |
| 229 } // namespace extensions | 229 } // namespace extensions |
| OLD | NEW |