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

Side by Side Diff: extensions/browser/extension_registry_observer.h

Issue 386033002: Prune shared extendion module after extension updating. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix review issues 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 | Annotate | Revision Log
« no previous file with comments | « extensions/browser/extension_registry.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
7 7
8 #include "extensions/common/extension.h" 8 #include "extensions/common/extension.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 content::BrowserContext* browser_context, 56 content::BrowserContext* browser_context,
57 const Extension* extension, 57 const Extension* extension,
58 bool is_update, 58 bool is_update,
59 bool from_ephemeral, 59 bool from_ephemeral,
60 const std::string& old_name) {} 60 const std::string& old_name) {}
61 61
62 // Called when the installation of |extension| is complete. At this point the 62 // Called when the installation of |extension| is complete. At this point the
63 // extension is tracked in one of the ExtensionRegistry sets, but is not 63 // extension is tracked in one of the ExtensionRegistry sets, but is not
64 // necessarily enabled. 64 // necessarily enabled.
65 virtual void OnExtensionInstalled(content::BrowserContext* browser_context, 65 virtual void OnExtensionInstalled(content::BrowserContext* browser_context,
66 const Extension* extension) {} 66 const Extension* extension,
67 bool is_update) {}
67 68
68 // Called after an extension is uninstalled. The extension no longer exists in 69 // Called after an extension is uninstalled. The extension no longer exists in
69 // any of the ExtensionRegistry sets (enabled, disabled, etc.). 70 // any of the ExtensionRegistry sets (enabled, disabled, etc.).
70 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, 71 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context,
71 const Extension* extension) {} 72 const Extension* extension) {}
72 73
73 // Notifies observers that the observed object is going away. 74 // Notifies observers that the observed object is going away.
74 virtual void OnShutdown(ExtensionRegistry* registry) {} 75 virtual void OnShutdown(ExtensionRegistry* registry) {}
75 }; 76 };
76 77
77 } // namespace extensions 78 } // namespace extensions
78 79
79 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ 80 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_registry.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698