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

Side by Side Diff: chrome/browser/prerender/prerender_manager.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, 3 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_PRERENDER_PRERENDER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 scoped_ptr<PrerenderContents::Factory> prerender_contents_factory_; 502 scoped_ptr<PrerenderContents::Factory> prerender_contents_factory_;
503 503
504 static PrerenderManagerMode mode_; 504 static PrerenderManagerMode mode_;
505 505
506 // A count of how many prerenders we do per session. Initialized to 0 then 506 // A count of how many prerenders we do per session. Initialized to 0 then
507 // incremented and emitted to a histogram on each successful prerender. 507 // incremented and emitted to a histogram on each successful prerender.
508 static int prerenders_per_session_count_; 508 static int prerenders_per_session_count_;
509 509
510 // RepeatingTimer to perform periodic cleanups of pending prerendered 510 // RepeatingTimer to perform periodic cleanups of pending prerendered
511 // pages. 511 // pages.
512 base::RepeatingTimer<PrerenderManager> repeating_timer_; 512 base::RepeatingTimer repeating_timer_;
513 513
514 // Track time of last prerender to limit prerender spam. 514 // Track time of last prerender to limit prerender spam.
515 base::TimeTicks last_prerender_start_time_; 515 base::TimeTicks last_prerender_start_time_;
516 516
517 std::list<content::WebContents*> old_web_contents_list_; 517 std::list<content::WebContents*> old_web_contents_list_;
518 518
519 ScopedVector<OnCloseWebContentsDeleter> on_close_web_contents_deleters_; 519 ScopedVector<OnCloseWebContentsDeleter> on_close_web_contents_deleters_;
520 520
521 scoped_ptr<PrerenderHistory> prerender_history_; 521 scoped_ptr<PrerenderHistory> prerender_history_;
522 522
(...skipping 11 matching lines...) Expand all
534 // Set of process hosts being prerendered. 534 // Set of process hosts being prerendered.
535 typedef std::set<content::RenderProcessHost*> PrerenderProcessSet; 535 typedef std::set<content::RenderProcessHost*> PrerenderProcessSet;
536 PrerenderProcessSet prerender_process_hosts_; 536 PrerenderProcessSet prerender_process_hosts_;
537 537
538 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); 538 DISALLOW_COPY_AND_ASSIGN(PrerenderManager);
539 }; 539 };
540 540
541 } // namespace prerender 541 } // namespace prerender
542 542
543 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 543 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/power/process_power_collector.h ('k') | chrome/browser/printing/print_view_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698