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

Side by Side Diff: chrome/browser/chromeos/extensions/install_limiter.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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_BROWSER_CHROMEOS_EXTENSIONS_INSTALL_LIMITER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_INSTALL_LIMITER_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INSTALL_LIMITER_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INSTALL_LIMITER_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void Observe(int type, 71 void Observe(int type,
72 const content::NotificationSource& source, 72 const content::NotificationSource& source,
73 const content::NotificationDetails& details) override; 73 const content::NotificationDetails& details) override;
74 74
75 content::NotificationRegistrar registrar_; 75 content::NotificationRegistrar registrar_;
76 76
77 DeferredInstallList deferred_installs_; 77 DeferredInstallList deferred_installs_;
78 CrxInstallerSet running_installers_; 78 CrxInstallerSet running_installers_;
79 79
80 // A timer to wait before running deferred big app install. 80 // A timer to wait before running deferred big app install.
81 base::OneShotTimer<InstallLimiter> wait_timer_; 81 base::OneShotTimer wait_timer_;
82 82
83 bool disabled_for_test_; 83 bool disabled_for_test_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(InstallLimiter); 85 DISALLOW_COPY_AND_ASSIGN(InstallLimiter);
86 }; 86 };
87 87
88 } // namespace extensions 88 } // namespace extensions
89 89
90 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INSTALL_LIMITER_H_ 90 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INSTALL_LIMITER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698