Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: chrome/browser/dom_ui/shown_sections_handler.h

Issue 3156049: First set of changes for M7 NTP. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: pre-review cleanup Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_SHOWN_SECTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_SHOWN_SECTIONS_HANDLER_H_
6 #define CHROME_BROWSER_DOM_UI_SHOWN_SECTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_DOM_UI_SHOWN_SECTIONS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/dom_ui/dom_ui.h" 9 #include "chrome/browser/dom_ui/dom_ui.h"
10 #include "chrome/common/notification_observer.h" 10 #include "chrome/common/notification_observer.h"
11 11
12 class DOMUI; 12 class DOMUI;
13 class Value; 13 class Value;
14 class PrefService; 14 class PrefService;
15 15
16 // Use for the shown sections bitmask. 16 // Use for the shown sections bitmask.
17 enum Section { 17 enum Section {
18 THUMB = 1, 18 THUMB = 1,
19 LIST = 2, 19 LIST = 2,
20 RECENT = 4, 20 RECENT = 4,
21 TIPS = 8, 21 TIPS = 8,
22 SYNC = 16, 22 SYNC = 16,
23 DEBUG = 32 23 DEBUG = 32,
24 APPS = 64
24 }; 25 };
25 26
26 class ShownSectionsHandler : public DOMMessageHandler, 27 class ShownSectionsHandler : public DOMMessageHandler,
27 public NotificationObserver { 28 public NotificationObserver {
28 public: 29 public:
29 explicit ShownSectionsHandler(PrefService* pref_service); 30 explicit ShownSectionsHandler(PrefService* pref_service);
30 virtual ~ShownSectionsHandler(); 31 virtual ~ShownSectionsHandler();
31 32
32 // DOMMessageHandler implementation. 33 // DOMMessageHandler implementation.
33 virtual void RegisterMessages(); 34 virtual void RegisterMessages();
(...skipping 15 matching lines...) Expand all
49 int old_pref_version, 50 int old_pref_version,
50 int new_pref_version); 51 int new_pref_version);
51 52
52 private: 53 private:
53 PrefService* pref_service_; 54 PrefService* pref_service_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(ShownSectionsHandler); 56 DISALLOW_COPY_AND_ASSIGN(ShownSectionsHandler);
56 }; 57 };
57 58
58 #endif // CHROME_BROWSER_DOM_UI_SHOWN_SECTIONS_HANDLER_H_ 59 #endif // CHROME_BROWSER_DOM_UI_SHOWN_SECTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698