| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/extensions/shared_module_service.h" | 5 #include "chrome/browser/extensions/shared_module_service.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/version.h" | 10 #include "base/version.h" |
| 11 #include "chrome/browser/extensions/extension_service.h" | 11 #include "chrome/browser/extensions/extension_service.h" |
| 12 #include "chrome/browser/extensions/pending_extension_manager.h" | 12 #include "chrome/browser/extensions/pending_extension_manager.h" |
| 13 #include "chrome/common/extensions/extension_constants.h" | |
| 14 #include "extensions/browser/extension_registry.h" | 13 #include "extensions/browser/extension_registry.h" |
| 15 #include "extensions/browser/extension_system.h" | 14 #include "extensions/browser/extension_system.h" |
| 16 #include "extensions/browser/uninstall_reason.h" | 15 #include "extensions/browser/uninstall_reason.h" |
| 17 #include "extensions/common/extension.h" | 16 #include "extensions/common/extension.h" |
| 17 #include "extensions/common/extension_urls.h" |
| 18 | 18 |
| 19 namespace extensions { | 19 namespace extensions { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 typedef std::vector<SharedModuleInfo::ImportInfo> ImportInfoVector; | 23 typedef std::vector<SharedModuleInfo::ImportInfo> ImportInfoVector; |
| 24 typedef std::list<SharedModuleInfo::ImportInfo> ImportInfoList; | 24 typedef std::list<SharedModuleInfo::ImportInfo> ImportInfoList; |
| 25 | 25 |
| 26 } // namespace | 26 } // namespace |
| 27 | 27 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 } | 182 } |
| 183 | 183 |
| 184 void SharedModuleService::OnExtensionUninstalled( | 184 void SharedModuleService::OnExtensionUninstalled( |
| 185 content::BrowserContext* browser_context, | 185 content::BrowserContext* browser_context, |
| 186 const Extension* extension, | 186 const Extension* extension, |
| 187 extensions::UninstallReason reason) { | 187 extensions::UninstallReason reason) { |
| 188 PruneSharedModules(); | 188 PruneSharedModules(); |
| 189 } | 189 } |
| 190 | 190 |
| 191 } // namespace extensions | 191 } // namespace extensions |
| OLD | NEW |