OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_WEBUI_NTP_NEW_TAB_PAGE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_HANDLER_H_ |
7 | 7 |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/common/chrome_notification_types.h" | 9 #include "chrome/common/chrome_notification_types.h" |
10 #include "content/public/browser/web_ui_message_handler.h" | 10 #include "content/public/browser/web_ui_message_handler.h" |
11 | 11 |
12 class PrefServiceSimple; | 12 class PrefRegistrySimple; |
13 class PrefServiceSyncable; | 13 class PrefServiceSyncable; |
14 class Profile; | 14 class Profile; |
15 | 15 |
16 // Handler for general New Tab Page functionality that does not belong in a | 16 // Handler for general New Tab Page functionality that does not belong in a |
17 // more specialized handler. | 17 // more specialized handler. |
18 class NewTabPageHandler : public content::WebUIMessageHandler { | 18 class NewTabPageHandler : public content::WebUIMessageHandler { |
19 public: | 19 public: |
20 NewTabPageHandler(); | 20 NewTabPageHandler(); |
21 | 21 |
22 // Register NTP per-profile preferences. | 22 // Register NTP per-profile preferences. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 static const int kHistogramEnumerationMax = | 78 static const int kHistogramEnumerationMax = |
79 (LAST_PAGE_ID >> kPageIdOffset) + 1; | 79 (LAST_PAGE_ID >> kPageIdOffset) + 1; |
80 | 80 |
81 // Helper to send out promo resource change notification. | 81 // Helper to send out promo resource change notification. |
82 void Notify(chrome::NotificationType notification_type); | 82 void Notify(chrome::NotificationType notification_type); |
83 | 83 |
84 DISALLOW_COPY_AND_ASSIGN(NewTabPageHandler); | 84 DISALLOW_COPY_AND_ASSIGN(NewTabPageHandler); |
85 }; | 85 }; |
86 | 86 |
87 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_HANDLER_H_ | 87 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_HANDLER_H_ |
OLD | NEW |