| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |