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

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

Issue 10182006: Adds the MostVisitedAction stat. This stat will provide a baseline to compare (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Sync'ed. 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/most_visited_handler.h
===================================================================
--- chrome/browser/ui/webui/ntp/most_visited_handler.h (revision 133667)
+++ chrome/browser/ui/webui/ntp/most_visited_handler.h (working copy)
@@ -52,6 +52,12 @@
// Callback for the "clearMostVisitedURLsBlacklist" message.
void HandleClearBlacklist(const base::ListValue* args);
+ // Callback for the "mostVisitedAction" message.
+ void HandleMostVisitedAction(const base::ListValue* args);
+
+ // Callback for the "mostVisitedSelected" message.
+ void HandleMostVisitedSelected(const base::ListValue* args);
+
// content::NotificationObserver implementation.
virtual void Observe(int type,
const content::NotificationSource& source,
@@ -101,6 +107,12 @@
// Keep the results of the db query here.
scoped_ptr<base::ListValue> pages_value_;
+ // Whether the user has viewed the 'most visited' pane.
+ bool most_visited_viewed_;
+
+ // Whether the user has performed a "tracked" action to leave the page or not.
+ bool user_action_logged_;
+
DISALLOW_COPY_AND_ASSIGN(MostVisitedHandler);
};

Powered by Google App Engine
This is Rietveld 408576698