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

Side by Side Diff: chrome/browser/ui/webui/ntp/new_tab_ui.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_UI_WEBUI_NTP_NEW_TAB_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 Profile* GetProfile() const; 125 Profile* GetProfile() const;
126 126
127 content::NotificationRegistrar registrar_; 127 content::NotificationRegistrar registrar_;
128 128
129 // The time when we started benchmarking. 129 // The time when we started benchmarking.
130 base::TimeTicks start_; 130 base::TimeTicks start_;
131 // The last time we got a paint notification. 131 // The last time we got a paint notification.
132 base::TimeTicks last_paint_; 132 base::TimeTicks last_paint_;
133 // Scoping so we can be sure our timeouts don't outlive us. 133 // Scoping so we can be sure our timeouts don't outlive us.
134 base::OneShotTimer<NewTabUI> timer_; 134 base::OneShotTimer timer_;
135 // The preference version. This used for migrating prefs of the NTP. 135 // The preference version. This used for migrating prefs of the NTP.
136 static const int current_pref_version_ = 3; 136 static const int current_pref_version_ = 3;
137 137
138 // If the sync promo NTP bubble is being shown. 138 // If the sync promo NTP bubble is being shown.
139 bool showing_sync_bubble_; 139 bool showing_sync_bubble_;
140 140
141 PrefChangeRegistrar pref_change_registrar_; 141 PrefChangeRegistrar pref_change_registrar_;
142 142
143 DISALLOW_COPY_AND_ASSIGN(NewTabUI); 143 DISALLOW_COPY_AND_ASSIGN(NewTabUI);
144 }; 144 };
145 145
146 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_ 146 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/history_ui.h ('k') | chrome/browser/ui/webui/options/sync_setup_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698