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

Unified Diff: components/ntp_tiles/webui/ntp_tiles_internals_message_handler.h

Issue 2572133002: Add more features to ntp-tiles-internal (Closed)
Patch Set: Add ntp_tiles owners to client webui owners Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: components/ntp_tiles/webui/ntp_tiles_internals_message_handler.h
diff --git a/components/ntp_tiles/webui/ntp_tiles_internals_message_handler.h b/components/ntp_tiles/webui/ntp_tiles_internals_message_handler.h
index 23727465e8450faa656fd557caa4f180916241f8..03b58c40f5240dd86bc45ccdb9a5409af061be5b 100644
--- a/components/ntp_tiles/webui/ntp_tiles_internals_message_handler.h
+++ b/components/ntp_tiles/webui/ntp_tiles_internals_message_handler.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "base/optional.h"
#include "components/ntp_tiles/most_visited_sites.h"
namespace base {
@@ -39,6 +40,8 @@ class NTPTilesInternalsMessageHandler : public MostVisitedSites::Observer {
// Callbacks registered in RegisterMessages().
void HandleRegisterForEvents(const base::ListValue* args);
void HandleUpdate(const base::ListValue* args);
+ void HandleFetchSuggestions(const base::ListValue* args);
+ void HandleViewPopularSitesJson(const base::ListValue* args);
void SendSourceInfo();
void SendTiles(const NTPTilesVector& tiles);
@@ -53,6 +56,11 @@ class NTPTilesInternalsMessageHandler : public MostVisitedSites::Observer {
int site_count_;
std::unique_ptr<MostVisitedSites> most_visited_sites_;
+ std::string suggestions_status_;
+ std::string popular_sites_json_;
+
+ base::WeakPtrFactory<NTPTilesInternalsMessageHandler> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(NTPTilesInternalsMessageHandler);
};
« no previous file with comments | « components/ntp_tiles/most_visited_sites.cc ('k') | components/ntp_tiles/webui/ntp_tiles_internals_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698