| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
| 8 #include "chrome/browser/dom_ui/dom_ui.h" | 8 #include "chrome/browser/dom_ui/dom_ui.h" |
| 9 | 9 |
| 10 class GURL; | 10 class GURL; |
| 11 class Profile; | 11 class Profile; |
| 12 | 12 |
| 13 // The TabContents used for the New Tab page. | 13 // The TabContents used for the New Tab page. |
| 14 class NewTabUI : public DOMUI { | 14 class NewTabUI : public DOMUI { |
| 15 public: | 15 public: |
| 16 explicit NewTabUI(WebContents* manager); | 16 explicit NewTabUI(WebContents* manager); |
| 17 ~NewTabUI(); |
| 17 | 18 |
| 18 private: | 19 private: |
| 19 // The message id that should be displayed in this NewTabUIContents | 20 // The message id that should be displayed in this NewTabUIContents |
| 20 // instance's motd area. | 21 // instance's motd area. |
| 21 int motd_message_id_; | 22 int motd_message_id_; |
| 22 | 23 |
| 23 // Whether the user is in incognito mode or not, used to determine | 24 // Whether the user is in incognito mode or not, used to determine |
| 24 // what HTML to load. | 25 // what HTML to load. |
| 25 bool incognito_; | 26 bool incognito_; |
| 26 | 27 |
| 27 DISALLOW_COPY_AND_ASSIGN(NewTabUI); | 28 DISALLOW_COPY_AND_ASSIGN(NewTabUI); |
| 28 }; | 29 }; |
| 29 | 30 |
| 30 #endif // CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H_ | 31 #endif // CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H_ |
| OLD | NEW |