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

Side by Side Diff: chrome/browser/extensions/webstore_installer.h

Issue 297263003: Optimize promotion of ephemeral apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 OnExtensionWillBeInstalled(
203 content::BrowserContext* browser_context, 203 content::BrowserContext* browser_context,
204 const Extension* extension, 204 const Extension* extension,
205 bool is_update, 205 bool is_update,
206 bool from_ephemeral,
206 const std::string& old_name) OVERRIDE; 207 const std::string& old_name) OVERRIDE;
207 208
208 // Removes the reference to the delegate passed in the constructor. Used when 209 // Removes the reference to the delegate passed in the constructor. Used when
209 // the delegate object must be deleted before this object. 210 // the delegate object must be deleted before this object.
210 void InvalidateDelegate(); 211 void InvalidateDelegate();
211 212
212 // Instead of using the default download directory, use |directory| instead. 213 // Instead of using the default download directory, use |directory| instead.
213 // This does *not* transfer ownership of |directory|. 214 // This does *not* transfer ownership of |directory|.
214 static void SetDownloadDirectoryForTests(base::FilePath* directory); 215 static void SetDownloadDirectoryForTests(base::FilePath* directory);
215 216
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 std::list<SharedModuleInfo::ImportInfo> pending_modules_; 283 std::list<SharedModuleInfo::ImportInfo> pending_modules_;
283 // Total extension modules we need download and install (the main module and 284 // Total extension modules we need download and install (the main module and
284 // depedences). 285 // depedences).
285 int total_modules_; 286 int total_modules_;
286 bool download_started_; 287 bool download_started_;
287 }; 288 };
288 289
289 } // namespace extensions 290 } // namespace extensions
290 291
291 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_ 292 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/install_tracker.cc ('k') | chrome/browser/extensions/webstore_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698