blob: 70a7a50519d8fb452412b7e89bebd5dba7fd11cb (
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
41
42
|
// Copyright (c) 2006-2009 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_SHOWN_SECTIONS_HANDLER_H_
#define CHROME_BROWSER_DOM_UI_SHOWN_SECTIONS_HANDLER_H_
#include "chrome/browser/dom_ui/dom_ui.h"
class DOMUI;
class Value;
class PrefService;
// Use for the shown sections bitmask.
enum Section {
THUMB = 1,
LIST = 2,
RECENT = 4,
TIPS = 8
};
class ShownSectionsHandler : public DOMMessageHandler {
public:
ShownSectionsHandler() {}
virtual ~ShownSectionsHandler() {}
// DOMMessageHandler implementation.
virtual void RegisterMessages();
// Callback for "getShownSections" message.
void HandleGetShownSections(const Value* value);
// Callback for "setShownSections" message.
void HandleSetShownSections(const Value* value);
static void RegisterUserPrefs(PrefService* prefs);
private:
DISALLOW_COPY_AND_ASSIGN(ShownSectionsHandler);
};
#endif // CHROME_BROWSER_DOM_UI_SHOWN_SECTIONS_HANDLER_H_
|