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

Side by Side Diff: chrome/browser/extensions/webstore_installer.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEBSTORE_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 // The icon to use to display the extension while it is installing. 154 // The icon to use to display the extension while it is installing.
155 gfx::ImageSkia installing_icon; 155 gfx::ImageSkia installing_icon;
156 156
157 // A dummy extension created from |manifest|; 157 // A dummy extension created from |manifest|;
158 scoped_refptr<Extension> dummy_extension; 158 scoped_refptr<Extension> dummy_extension;
159 159
160 // Required minimum version. 160 // Required minimum version.
161 scoped_ptr<Version> minimum_version; 161 scoped_ptr<Version> minimum_version;
162 162
163 // Ephemeral apps (experimental) are not permanently installed in Chrome. 163 // Ephemeral apps are transiently installed.
164 bool is_ephemeral; 164 bool is_ephemeral;
165 165
166 // The authuser index required to download the item being installed. May be 166 // The authuser index required to download the item being installed. May be
167 // the empty string, in which case no authuser parameter is used. 167 // the empty string, in which case no authuser parameter is used.
168 std::string authuser; 168 std::string authuser;
169 169
170 private: 170 private:
171 Approval(); 171 Approval();
172 }; 172 };
173 173
(...skipping 18 matching lines...) Expand all
192 192
193 // Starts downloading and installing the extension. 193 // Starts downloading and installing the extension.
194 void Start(); 194 void Start();
195 195
196 // content::NotificationObserver. 196 // content::NotificationObserver.
197 virtual void Observe(int type, 197 virtual void Observe(int type,
198 const content::NotificationSource& source, 198 const content::NotificationSource& source,
199 const content::NotificationDetails& details) OVERRIDE; 199 const content::NotificationDetails& details) OVERRIDE;
200 200
201 // ExtensionRegistryObserver. 201 // ExtensionRegistryObserver.
202 virtual void OnExtensionWillBeInstalled( 202 virtual void OnExtensionInstalled(content::BrowserContext* browser_context,
203 content::BrowserContext* browser_context, 203 const Extension* extension) OVERRIDE;
204 const Extension* extension,
205 bool is_update,
206 bool from_ephemeral,
207 const std::string& old_name) OVERRIDE;
208 204
209 // Removes the reference to the delegate passed in the constructor. Used when 205 // Removes the reference to the delegate passed in the constructor. Used when
210 // the delegate object must be deleted before this object. 206 // the delegate object must be deleted before this object.
211 void InvalidateDelegate(); 207 void InvalidateDelegate();
212 208
213 // Instead of using the default download directory, use |directory| instead. 209 // Instead of using the default download directory, use |directory| instead.
214 // This does *not* transfer ownership of |directory|. 210 // This does *not* transfer ownership of |directory|.
215 static void SetDownloadDirectoryForTests(base::FilePath* directory); 211 static void SetDownloadDirectoryForTests(base::FilePath* directory);
216 212
217 private: 213 private:
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 std::list<SharedModuleInfo::ImportInfo> pending_modules_; 279 std::list<SharedModuleInfo::ImportInfo> pending_modules_;
284 // Total extension modules we need download and install (the main module and 280 // Total extension modules we need download and install (the main module and
285 // depedences). 281 // depedences).
286 int total_modules_; 282 int total_modules_;
287 bool download_started_; 283 bool download_started_;
288 }; 284 };
289 285
290 } // namespace extensions 286 } // namespace extensions
291 287
292 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_ 288 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698