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

Unified Diff: chrome/browser/instant/instant_page.h

Issue 12498002: InstantExtended: Adding InstantRestrictedIDCache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merging David's and Sreeram's changes. Created 7 years, 9 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/instant/instant_page.h
diff --git a/chrome/browser/instant/instant_page.h b/chrome/browser/instant/instant_page.h
index 15c8fe46d0dde4335cd5467adc88ba8a2d0e90a8..3542a4f468fc9b9646eb498143818003018c2db2 100644
--- a/chrome/browser/instant/instant_page.h
+++ b/chrome/browser/instant/instant_page.h
@@ -90,10 +90,10 @@ class InstantPage : public content::WebContentsObserver {
WindowOpenDisposition disposition) = 0;
// Called when the SearchBox wants to delete a Most Visited item.
- virtual void DeleteMostVisitedItem(uint64 most_visited_item_id) = 0;
+ virtual void DeleteMostVisitedItem(InstantRestrictedID restricted_id) = 0;
// Called when the SearchBox wants to undo a Most Visited deletion.
- virtual void UndoMostVisitedDeletion(uint64 most_visited_item_id) = 0;
+ virtual void UndoMostVisitedDeletion(InstantRestrictedID restricted_id) = 0;
// Called when the SearchBox wants to undo all Most Visited deletions.
virtual void UndoAllMostVisitedDeletions() = 0;
@@ -171,7 +171,8 @@ class InstantPage : public content::WebContentsObserver {
void KeyCaptureChanged(bool is_key_capture_enabled);
// Tells the page about new Most Visited data.
- void SendMostVisitedItems(const std::vector<InstantMostVisitedItem>& items);
+ void SendMostVisitedItems(
+ const std::vector<InstantMostVisitedItemIDPair>& items);
protected:
explicit InstantPage(Delegate* delegate);
@@ -228,8 +229,8 @@ class InstantPage : public content::WebContentsObserver {
const GURL& url,
content::PageTransition transition,
WindowOpenDisposition disposition);
- void OnDeleteMostVisitedItem(uint64 most_visited_item_id);
- void OnUndoMostVisitedDeletion(uint64 most_visited_item_id);
+ void OnDeleteMostVisitedItem(InstantRestrictedID restricted_id);
+ void OnUndoMostVisitedDeletion(InstantRestrictedID restricted_id);
void OnUndoAllMostVisitedDeletions();
Delegate* const delegate_;

Powered by Google App Engine
This is Rietveld 408576698