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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 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 | « chrome/browser/extensions/updater/extension_updater.h ('k') | chrome/browser/image_decoder.h » ('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 (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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 Profile* profile_; 269 Profile* profile_;
270 Delegate* delegate_; 270 Delegate* delegate_;
271 std::string id_; 271 std::string id_;
272 InstallSource install_source_; 272 InstallSource install_source_;
273 // The DownloadItem is owned by the DownloadManager and is valid from when 273 // The DownloadItem is owned by the DownloadManager and is valid from when
274 // OnDownloadStarted is called (with no error) until OnDownloadDestroyed(). 274 // OnDownloadStarted is called (with no error) until OnDownloadDestroyed().
275 content::DownloadItem* download_item_; 275 content::DownloadItem* download_item_;
276 // Used to periodically update the extension's download status. This will 276 // Used to periodically update the extension's download status. This will
277 // trigger at least every second, though sometimes more frequently (depending 277 // trigger at least every second, though sometimes more frequently (depending
278 // on number of modules, etc). 278 // on number of modules, etc).
279 base::OneShotTimer<WebstoreInstaller> download_progress_timer_; 279 base::OneShotTimer download_progress_timer_;
280 scoped_ptr<Approval> approval_; 280 scoped_ptr<Approval> approval_;
281 GURL download_url_; 281 GURL download_url_;
282 scoped_refptr<CrxInstaller> crx_installer_; 282 scoped_refptr<CrxInstaller> crx_installer_;
283 283
284 // Pending modules. 284 // Pending modules.
285 std::list<SharedModuleInfo::ImportInfo> pending_modules_; 285 std::list<SharedModuleInfo::ImportInfo> pending_modules_;
286 // Total extension modules we need download and install (the main module and 286 // Total extension modules we need download and install (the main module and
287 // depedences). 287 // depedences).
288 int total_modules_; 288 int total_modules_;
289 bool download_started_; 289 bool download_started_;
290 }; 290 };
291 291
292 } // namespace extensions 292 } // namespace extensions
293 293
294 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_ 294 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/extension_updater.h ('k') | chrome/browser/image_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698