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

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

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase 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
« no previous file with comments | « extensions/browser/extension_host.cc ('k') | extensions/browser/extension_registry.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 OnExtensionUnloaded(). The extension must not 98 // Invokes the observer method OnExtensionUnloaded(). The extension must not
99 // be enabled at the time of the call. 99 // be enabled at the time of the call.
100 void TriggerOnUnloaded(const Extension* extension, 100 void TriggerOnUnloaded(const Extension* extension,
101 UnloadedExtensionInfo::Reason reason); 101 UnloadedExtensionReason reason);
102 102
103 // If this is a fresh install then |is_update| is false and there must not be 103 // 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 104 // 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 105 // |is_update| is true and must be an installed extension with |extension|'s
106 // ID, and |old_name| must be non-empty. 106 // ID, and |old_name| must be non-empty.
107 void TriggerOnWillBeInstalled(const Extension* extension, 107 void TriggerOnWillBeInstalled(const Extension* extension,
108 bool is_update, 108 bool is_update,
109 const std::string& old_name); 109 const std::string& old_name);
110 110
111 // Invokes the observer method OnExtensionInstalled(). The extension must be 111 // Invokes the observer method OnExtensionInstalled(). The extension must be
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 base::ObserverList<ExtensionRegistryObserver> observers_; 196 base::ObserverList<ExtensionRegistryObserver> observers_;
197 197
198 content::BrowserContext* const browser_context_; 198 content::BrowserContext* const browser_context_;
199 199
200 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry); 200 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry);
201 }; 201 };
202 202
203 } // namespace extensions 203 } // namespace extensions
204 204
205 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ 205 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_host.cc ('k') | extensions/browser/extension_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698