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

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

Issue 326213004: Invoke callback from WebstoreInstaller when installation is fully complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self nits Created 6 years, 6 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // |is_update| is true and must be an installed extension with |extension|'s 79 // |is_update| is true and must be an installed extension with |extension|'s
80 // ID, and |old_name| must be non-empty. 80 // ID, and |old_name| must be non-empty.
81 // If true, |from_ephemeral| indicates that the extension was previously 81 // If true, |from_ephemeral| indicates that the extension was previously
82 // installed ephemerally and has been promoted to a regular installed 82 // installed ephemerally and has been promoted to a regular installed
83 // extension. |is_update| should also be true. 83 // extension. |is_update| should also be true.
84 void TriggerOnWillBeInstalled(const Extension* extension, 84 void TriggerOnWillBeInstalled(const Extension* extension,
85 bool is_update, 85 bool is_update,
86 bool from_ephemeral, 86 bool from_ephemeral,
87 const std::string& old_name); 87 const std::string& old_name);
88 88
89 // Invokes the observer method OnExtensionInstalled(). The extension must be
90 // contained in one of the registry's extension sets.
91 void TriggerOnInstalled(const Extension* extension);
92
89 // Invokes the observer method OnExtensionUninstalled(). The extension must 93 // Invokes the observer method OnExtensionUninstalled(). The extension must
90 // not be any installed extension with |extension|'s ID. 94 // not be any installed extension with |extension|'s ID.
91 void TriggerOnUninstalled(const Extension* extension); 95 void TriggerOnUninstalled(const Extension* extension);
92 96
93 // Find an extension by ID using |include_mask| to pick the sets to search: 97 // Find an extension by ID using |include_mask| to pick the sets to search:
94 // * enabled_extensions() --> ExtensionRegistry::ENABLED 98 // * enabled_extensions() --> ExtensionRegistry::ENABLED
95 // * disabled_extensions() --> ExtensionRegistry::DISABLED 99 // * disabled_extensions() --> ExtensionRegistry::DISABLED
96 // * terminated_extensions() --> ExtensionRegistry::TERMINATED 100 // * terminated_extensions() --> ExtensionRegistry::TERMINATED
97 // * blacklisted_extensions() --> ExtensionRegistry::BLACKLISTED 101 // * blacklisted_extensions() --> ExtensionRegistry::BLACKLISTED
98 // Returns NULL if the extension is not found in the selected sets. 102 // Returns NULL if the extension is not found in the selected sets.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 ObserverList<ExtensionRegistryObserver> observers_; 159 ObserverList<ExtensionRegistryObserver> observers_;
156 160
157 content::BrowserContext* const browser_context_; 161 content::BrowserContext* const browser_context_;
158 162
159 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry); 163 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry);
160 }; 164 };
161 165
162 } // namespace extensions 166 } // namespace extensions
163 167
164 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ 168 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698