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

Side by Side Diff: chrome/browser/ui/webui/ntp/most_visited_handler.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_MOST_VISITED_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_MOST_VISITED_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_MOST_VISITED_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_MOST_VISITED_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Callback for the "clearMostVisitedURLsBlacklist" message. 54 // Callback for the "clearMostVisitedURLsBlacklist" message.
55 void HandleClearBlacklist(const ListValue* args); 55 void HandleClearBlacklist(const ListValue* args);
56 56
57 // Callback for the "addPinnedURL" message. 57 // Callback for the "addPinnedURL" message.
58 void HandleAddPinnedURL(const ListValue* args); 58 void HandleAddPinnedURL(const ListValue* args);
59 59
60 // Callback for the "removePinnedURL" message. 60 // Callback for the "removePinnedURL" message.
61 void HandleRemovePinnedURL(const ListValue* args); 61 void HandleRemovePinnedURL(const ListValue* args);
62 62
63 // NotificationObserver implementation. 63 // NotificationObserver implementation.
64 virtual void Observe(NotificationType type, 64 virtual void Observe(int type,
65 const NotificationSource& source, 65 const NotificationSource& source,
66 const NotificationDetails& details); 66 const NotificationDetails& details);
67 67
68 const std::vector<GURL>& most_visited_urls() const { 68 const std::vector<GURL>& most_visited_urls() const {
69 return most_visited_urls_; 69 return most_visited_urls_;
70 } 70 }
71 71
72 static void RegisterUserPrefs(PrefService* prefs); 72 static void RegisterUserPrefs(PrefService* prefs);
73 73
74 // Returns a vector containing the urls for the prepopulated pages. 74 // Returns a vector containing the urls for the prepopulated pages.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // we get the first getMostVisited() call. 124 // we get the first getMostVisited() call.
125 bool got_first_most_visited_request_; 125 bool got_first_most_visited_request_;
126 126
127 // Keep the results of the db query here. 127 // Keep the results of the db query here.
128 scoped_ptr<ListValue> pages_value_; 128 scoped_ptr<ListValue> pages_value_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(MostVisitedHandler); 130 DISALLOW_COPY_AND_ASSIGN(MostVisitedHandler);
131 }; 131 };
132 132
133 #endif // CHROME_BROWSER_UI_WEBUI_NTP_MOST_VISITED_HANDLER_H_ 133 #endif // CHROME_BROWSER_UI_WEBUI_NTP_MOST_VISITED_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/foreign_session_handler.cc ('k') | chrome/browser/ui/webui/ntp/most_visited_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698