blob: f233b0fc115b72203c9542bcae1a154f5a3a5103 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H_
#define CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H_
#include "chrome/browser/dom_ui/dom_ui.h"
#include "chrome/common/notification_observer.h"
class GURL;
class PrefService;
class Profile;
// The TabContents used for the New Tab page.
class NewTabUI : public DOMUI,
public NotificationObserver {
public:
explicit NewTabUI(TabContents* manager);
~NewTabUI();
static void RegisterUserPrefs(PrefService* prefs);
private:
void Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details);
// The message id that should be displayed in this NewTabUIContents
// instance's motd area.
int motd_message_id_;
// Whether the user is in incognito mode or not, used to determine
// what HTML to load.
bool incognito_;
DISALLOW_COPY_AND_ASSIGN(NewTabUI);
};
#endif // CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H_
|