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

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

Issue 386033002: Prune shared extendion module after extension updating. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix review issues Created 6 years, 5 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 | Annotate | Revision Log
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 OnExtensionInstalled(content::BrowserContext* browser_context, 202 virtual void OnExtensionInstalled(content::BrowserContext* browser_context,
203 const Extension* extension) OVERRIDE; 203 const Extension* extension,
204 bool is_update) OVERRIDE;
204 205
205 // Removes the reference to the delegate passed in the constructor. Used when 206 // Removes the reference to the delegate passed in the constructor. Used when
206 // the delegate object must be deleted before this object. 207 // the delegate object must be deleted before this object.
207 void InvalidateDelegate(); 208 void InvalidateDelegate();
208 209
209 // Instead of using the default download directory, use |directory| instead. 210 // Instead of using the default download directory, use |directory| instead.
210 // This does *not* transfer ownership of |directory|. 211 // This does *not* transfer ownership of |directory|.
211 static void SetDownloadDirectoryForTests(base::FilePath* directory); 212 static void SetDownloadDirectoryForTests(base::FilePath* directory);
212 213
213 private: 214 private:
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 std::list<SharedModuleInfo::ImportInfo> pending_modules_; 280 std::list<SharedModuleInfo::ImportInfo> pending_modules_;
280 // Total extension modules we need download and install (the main module and 281 // Total extension modules we need download and install (the main module and
281 // depedences). 282 // depedences).
282 int total_modules_; 283 int total_modules_;
283 bool download_started_; 284 bool download_started_;
284 }; 285 };
285 286
286 } // namespace extensions 287 } // namespace extensions
287 288
288 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_ 289 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/shared_module_service_unittest.cc ('k') | chrome/browser/extensions/webstore_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698