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

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: Rebase + Addressed comments 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 WindowOpenDisposition disposition, 280 WindowOpenDisposition disposition,
281 bool is_search_type) { 281 bool is_search_type) {
282 if (contents()->IsActiveEntry(page_id)) { 282 if (contents()->IsActiveEntry(page_id)) {
283 OnInstantSupportDetermined(page_id, true); 283 OnInstantSupportDetermined(page_id, true);
284 if (ShouldProcessNavigateToURL()) 284 if (ShouldProcessNavigateToURL())
285 delegate_->NavigateToURL( 285 delegate_->NavigateToURL(
286 contents(), url, transition, disposition, is_search_type); 286 contents(), url, transition, disposition, is_search_type);
287 } 287 }
288 } 288 }
289 289
290 void InstantPage::OnDeleteMostVisitedItem(InstantRestrictedID restricted_id) { 290 void InstantPage::OnDeleteMostVisitedItem(const GURL& url) {
291 delegate_->DeleteMostVisitedItem(restricted_id); 291 delegate_->DeleteMostVisitedItem(url);
292 } 292 }
293 293
294 void InstantPage::OnUndoMostVisitedDeletion(InstantRestrictedID restricted_id) { 294 void InstantPage::OnUndoMostVisitedDeletion(const GURL& url) {
295 delegate_->UndoMostVisitedDeletion(restricted_id); 295 delegate_->UndoMostVisitedDeletion(url);
296 } 296 }
297 297
298 void InstantPage::OnUndoAllMostVisitedDeletions() { 298 void InstantPage::OnUndoAllMostVisitedDeletions() {
299 delegate_->UndoAllMostVisitedDeletions(); 299 delegate_->UndoAllMostVisitedDeletions();
300 } 300 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698