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

Unified Diff: chrome/browser/ui/search/instant_page.h

Issue 14660022: Move most visited item state info from InstantController to InstantService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 7 years, 7 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/search/instant_page.h
diff --git a/chrome/browser/ui/search/instant_page.h b/chrome/browser/ui/search/instant_page.h
index 5edf008da7b97b32ce9d70150e9217bd6429415b..46fba57cf5563575d2f9e96a77fec881db5cd1a7 100644
--- a/chrome/browser/ui/search/instant_page.h
+++ b/chrome/browser/ui/search/instant_page.h
@@ -83,12 +83,10 @@ class InstantPage : public content::WebContentsObserver {
WindowOpenDisposition disposition) = 0;
// Called when the SearchBox wants to delete a Most Visited item.
- virtual void DeleteMostVisitedItem(
- InstantRestrictedID most_visited_item_id) = 0;
+ virtual void DeleteMostVisitedItem(const GURL& item_url) = 0;
// Called when the SearchBox wants to undo a Most Visited deletion.
- virtual void UndoMostVisitedDeletion(
- InstantRestrictedID most_visited_item_id) = 0;
+ virtual void UndoMostVisitedDeletion(const GURL& most_visited_item_url) = 0;
// Called when the SearchBox wants to undo all Most Visited deletions.
virtual void UndoAllMostVisitedDeletions() = 0;
@@ -251,8 +249,8 @@ class InstantPage : public content::WebContentsObserver {
const GURL& url,
content::PageTransition transition,
WindowOpenDisposition disposition);
- void OnDeleteMostVisitedItem(InstantRestrictedID most_visited_item_id);
- void OnUndoMostVisitedDeletion(InstantRestrictedID most_visited_item_id);
+ void OnDeleteMostVisitedItem(const GURL& item_url);
Jered 2013/05/21 20:18:21 Just "url" is fine here and below, since the metho
kmadhusu 2013/05/23 18:26:22 Done.
+ void OnUndoMostVisitedDeletion(const GURL& most_visited_item_url);
void OnUndoAllMostVisitedDeletions();
Delegate* const delegate_;

Powered by Google App Engine
This is Rietveld 408576698