| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DOM_UI_NEW_TAB_UI_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H_ | 6 #define CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "chrome/browser/dom_ui/dom_ui.h" | 12 #include "chrome/browser/dom_ui/dom_ui.h" |
| 13 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 13 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
| 14 #include "chrome/common/notification_observer.h" |
| 14 #include "chrome/common/notification_registrar.h" | 15 #include "chrome/common/notification_registrar.h" |
| 15 | 16 |
| 16 class GURL; | 17 class GURL; |
| 17 class MessageLoop; | 18 class MessageLoop; |
| 18 class PrefService; | 19 class PrefService; |
| 19 class Profile; | 20 class Profile; |
| 20 | 21 |
| 21 // The TabContents used for the New Tab page. | 22 // The TabContents used for the New Tab page. |
| 22 class NewTabUI : public DOMUI, | 23 class NewTabUI : public DOMUI, |
| 23 public NotificationObserver { | 24 public NotificationObserver { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 95 |
| 95 NotificationRegistrar registrar_; | 96 NotificationRegistrar registrar_; |
| 96 | 97 |
| 97 // The preference version. This used for migrating prefs of the NTP. | 98 // The preference version. This used for migrating prefs of the NTP. |
| 98 static const int current_pref_version_ = 2; | 99 static const int current_pref_version_ = 2; |
| 99 | 100 |
| 100 DISALLOW_COPY_AND_ASSIGN(NewTabUI); | 101 DISALLOW_COPY_AND_ASSIGN(NewTabUI); |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 #endif // CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H_ | 104 #endif // CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H_ |
| OLD | NEW |