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

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

Issue 2893693002: Remove NOTIFICATION_EXTENSION_ENABLED. (Closed)
Patch Set: Created 3 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Invokes the observer method OnExtensionLoaded(). The extension must be 89 // Invokes the observer method OnExtensionLoaded(). The extension must be
90 // enabled at the time of the call. 90 // enabled at the time of the call.
91 void TriggerOnLoaded(const Extension* extension); 91 void TriggerOnLoaded(const Extension* extension);
92 92
93 // Invokes the observer method OnExtensionReady(). This always follows 93 // Invokes the observer method OnExtensionReady(). This always follows
94 // an OnLoaded event, but is not called until it's safe to create the 94 // an OnLoaded event, but is not called until it's safe to create the
95 // extension's child process. 95 // extension's child process.
96 void TriggerOnReady(const Extension* extension); 96 void TriggerOnReady(const Extension* extension);
97 97
98 // Invokes the observer method OnExtensionEnabled().
99 void TriggerOnEnabled(const Extension* extension);
100
98 // Invokes the observer method OnExtensionUnloaded(). The extension must not 101 // Invokes the observer method OnExtensionUnloaded(). The extension must not
99 // be enabled at the time of the call. 102 // be enabled at the time of the call.
100 void TriggerOnUnloaded(const Extension* extension, 103 void TriggerOnUnloaded(const Extension* extension,
101 UnloadedExtensionReason reason); 104 UnloadedExtensionReason reason);
102 105
103 // If this is a fresh install then |is_update| is false and there must not be 106 // If this is a fresh install then |is_update| is false and there must not be
104 // any installed extension with |extension|'s ID. If this is an update then 107 // any installed extension with |extension|'s ID. If this is an update then
105 // |is_update| is true and must be an installed extension with |extension|'s 108 // |is_update| is true and must be an installed extension with |extension|'s
106 // ID, and |old_name| must be non-empty. 109 // ID, and |old_name| must be non-empty.
107 void TriggerOnWillBeInstalled(const Extension* extension, 110 void TriggerOnWillBeInstalled(const Extension* extension,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 base::ObserverList<ExtensionRegistryObserver> observers_; 199 base::ObserverList<ExtensionRegistryObserver> observers_;
197 200
198 content::BrowserContext* const browser_context_; 201 content::BrowserContext* const browser_context_;
199 202
200 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry); 203 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry);
201 }; 204 };
202 205
203 } // namespace extensions 206 } // namespace extensions
204 207
205 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ 208 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698