Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1129)

Side by Side Diff: chrome/browser/extensions/shared_module_service.h

Issue 398083002: Add "UninstallReason" parameter to ExtensionRegistryObserver::OnExtensionUninstalled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix header file. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef CHROME_BROWSER_EXTENSIONS_SHARED_MODULE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_SHARED_MODULE_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_SHARED_MODULE_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_SHARED_MODULE_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/scoped_observer.h" 10 #include "base/scoped_observer.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 scoped_ptr<ExtensionSet> GetDependentExtensions(const Extension* extension); 55 scoped_ptr<ExtensionSet> GetDependentExtensions(const Extension* extension);
56 56
57 private: 57 private:
58 // Uninstall shared modules which are not used by other extensions. 58 // Uninstall shared modules which are not used by other extensions.
59 void PruneSharedModules(); 59 void PruneSharedModules();
60 60
61 // ExtensionRegistryObserver implementation. 61 // ExtensionRegistryObserver implementation.
62 virtual void OnExtensionInstalled(content::BrowserContext* browser_context, 62 virtual void OnExtensionInstalled(content::BrowserContext* browser_context,
63 const Extension* extension, 63 const Extension* extension,
64 bool is_update) OVERRIDE; 64 bool is_update) OVERRIDE;
65 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, 65 virtual void OnExtensionUninstalled(
66 const Extension* extension) OVERRIDE; 66 content::BrowserContext* browser_context,
67 const Extension* extension,
68 extensions::UninstallReason reason) OVERRIDE;
67 69
68 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 70 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
69 extension_registry_observer_; 71 extension_registry_observer_;
70 72
71 // The context associated with this SharedModuleService. 73 // The context associated with this SharedModuleService.
72 content::BrowserContext* browser_context_; 74 content::BrowserContext* browser_context_;
73 75
74 DISALLOW_COPY_AND_ASSIGN(SharedModuleService); 76 DISALLOW_COPY_AND_ASSIGN(SharedModuleService);
75 }; 77 };
76 78
77 } // namespace extensions 79 } // namespace extensions
78 80
79 #endif // CHROME_BROWSER_EXTENSIONS_SHARED_MODULE_SERVICE_H_ 81 #endif // CHROME_BROWSER_EXTENSIONS_SHARED_MODULE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/external_install_manager.cc ('k') | chrome/browser/extensions/shared_module_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698