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

Side by Side Diff: chrome/browser/extensions/updater/extension_updater.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) 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_UPDATER_EXTENSION_UPDATER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // Pointer back to the service that owns this ExtensionUpdater. 247 // Pointer back to the service that owns this ExtensionUpdater.
248 ExtensionServiceInterface* service_; 248 ExtensionServiceInterface* service_;
249 249
250 // A closure passed into the ExtensionUpdater to teach it how to construct 250 // A closure passed into the ExtensionUpdater to teach it how to construct
251 // new ExtensionDownloader instances. 251 // new ExtensionDownloader instances.
252 const ExtensionDownloader::Factory downloader_factory_; 252 const ExtensionDownloader::Factory downloader_factory_;
253 253
254 // Fetches the crx files for the extensions that have an available update. 254 // Fetches the crx files for the extensions that have an available update.
255 scoped_ptr<ExtensionDownloader> downloader_; 255 scoped_ptr<ExtensionDownloader> downloader_;
256 256
257 base::OneShotTimer<ExtensionUpdater> timer_; 257 base::OneShotTimer timer_;
258 int frequency_seconds_; 258 int frequency_seconds_;
259 bool will_check_soon_; 259 bool will_check_soon_;
260 260
261 ExtensionPrefs* extension_prefs_; 261 ExtensionPrefs* extension_prefs_;
262 PrefService* prefs_; 262 PrefService* prefs_;
263 Profile* profile_; 263 Profile* profile_;
264 264
265 std::map<int, InProgressCheck> requests_in_progress_; 265 std::map<int, InProgressCheck> requests_in_progress_;
266 int next_request_id_; 266 int next_request_id_;
267 267
(...skipping 24 matching lines...) Expand all
292 std::set<std::string> forced_updates_; 292 std::set<std::string> forced_updates_;
293 293
294 base::WeakPtrFactory<ExtensionUpdater> weak_ptr_factory_; 294 base::WeakPtrFactory<ExtensionUpdater> weak_ptr_factory_;
295 295
296 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); 296 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater);
297 }; 297 };
298 298
299 } // namespace extensions 299 } // namespace extensions
300 300
301 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ 301 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698