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

Side by Side Diff: chrome/browser/ui/search/instant_page.cc

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/search/instant_page.h" 5 #include "chrome/browser/ui/search/instant_page.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/common/render_messages.h" 8 #include "chrome/common/render_messages.h"
9 #include "chrome/common/url_constants.h" 9 #include "chrome/common/url_constants.h"
10 #include "content/public/browser/navigation_controller.h" 10 #include "content/public/browser/navigation_controller.h"
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 const GURL& url, 277 const GURL& url,
278 content::PageTransition transition, 278 content::PageTransition transition,
279 WindowOpenDisposition disposition) { 279 WindowOpenDisposition disposition) {
280 if (contents()->IsActiveEntry(page_id)) { 280 if (contents()->IsActiveEntry(page_id)) {
281 OnInstantSupportDetermined(page_id, true); 281 OnInstantSupportDetermined(page_id, true);
282 if (ShouldProcessNavigateToURL()) 282 if (ShouldProcessNavigateToURL())
283 delegate_->NavigateToURL(contents(), url, transition, disposition); 283 delegate_->NavigateToURL(contents(), url, transition, disposition);
284 } 284 }
285 } 285 }
286 286
287 void InstantPage::OnDeleteMostVisitedItem(InstantRestrictedID restricted_id) { 287 void InstantPage::OnDeleteMostVisitedItem(const GURL& item_url) {
288 delegate_->DeleteMostVisitedItem(restricted_id); 288 delegate_->DeleteMostVisitedItem(item_url);
289 } 289 }
290 290
291 void InstantPage::OnUndoMostVisitedDeletion(InstantRestrictedID restricted_id) { 291 void InstantPage::OnUndoMostVisitedDeletion(const GURL& most_visited_item_url) {
292 delegate_->UndoMostVisitedDeletion(restricted_id); 292 delegate_->UndoMostVisitedDeletion(most_visited_item_url);
293 } 293 }
294 294
295 void InstantPage::OnUndoAllMostVisitedDeletions() { 295 void InstantPage::OnUndoAllMostVisitedDeletions() {
296 delegate_->UndoAllMostVisitedDeletions(); 296 delegate_->UndoAllMostVisitedDeletions();
297 } 297 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698