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

Unified Diff: chrome/browser/ui/webui/ntp/suggestions_page_handler.h

Issue 9958116: Adds the NewTabPage.SuggestedSitesAction stat. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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: chrome/browser/ui/webui/ntp/suggestions_page_handler.h
===================================================================
--- chrome/browser/ui/webui/ntp/suggestions_page_handler.h (revision 131961)
+++ chrome/browser/ui/webui/ntp/suggestions_page_handler.h (working copy)
@@ -33,7 +33,6 @@
class SuggestionsHandler : public content::WebUIMessageHandler,
public content::NotificationObserver {
public:
-
SuggestionsHandler();
virtual ~SuggestionsHandler();
@@ -52,6 +51,12 @@
// Callback for the "clearSuggestionsURLsBlacklist" message.
void HandleClearBlacklist(const base::ListValue* args);
+ // Callback for the "suggestedSitesAction" message.
+ void HandleSuggestedSitesAction(const base::ListValue* args);
+
+ // Callback for the "suggestedSitesSelected" message.
+ void HandleSuggestedSitesSelected(const base::ListValue* args);
+
// content::NotificationObserver implementation.
virtual void Observe(int type,
const content::NotificationSource& source,
@@ -95,6 +100,12 @@
// Keep the results of the db query here.
scoped_ptr<base::ListValue> pages_value_;
+ // Whether the user has viewed the 'suggested' pane.
+ bool suggestions_viewed_;
+
+ // Whether the user has performed a "tracked" action to leave the page or not.
+ bool user_action_logged_;
+
DISALLOW_COPY_AND_ASSIGN(SuggestionsHandler);
};
« no previous file with comments | « chrome/browser/resources/ntp4/suggestions_page.js ('k') | chrome/browser/ui/webui/ntp/suggestions_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698