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

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 Created 7 years, 6 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 WindowOpenDisposition disposition, 284 WindowOpenDisposition disposition,
285 bool is_search_type) { 285 bool is_search_type) {
286 if (contents()->IsActiveEntry(page_id)) { 286 if (contents()->IsActiveEntry(page_id)) {
287 OnInstantSupportDetermined(page_id, true); 287 OnInstantSupportDetermined(page_id, true);
288 if (ShouldProcessNavigateToURL()) 288 if (ShouldProcessNavigateToURL())
289 delegate_->NavigateToURL( 289 delegate_->NavigateToURL(
290 contents(), url, transition, disposition, is_search_type); 290 contents(), url, transition, disposition, is_search_type);
291 } 291 }
292 } 292 }
293 293
294 void InstantPage::OnDeleteMostVisitedItem(InstantRestrictedID restricted_id) { 294 void InstantPage::OnDeleteMostVisitedItem(const GURL& url) {
295 delegate_->DeleteMostVisitedItem(restricted_id); 295 delegate_->DeleteMostVisitedItem(url);
296 } 296 }
297 297
298 void InstantPage::OnUndoMostVisitedDeletion(InstantRestrictedID restricted_id) { 298 void InstantPage::OnUndoMostVisitedDeletion(const GURL& url) {
299 delegate_->UndoMostVisitedDeletion(restricted_id); 299 delegate_->UndoMostVisitedDeletion(url);
300 } 300 }
301 301
302 void InstantPage::OnUndoAllMostVisitedDeletions() { 302 void InstantPage::OnUndoAllMostVisitedDeletions() {
303 delegate_->UndoAllMostVisitedDeletions(); 303 delegate_->UndoAllMostVisitedDeletions();
304 } 304 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_page.h ('k') | chrome/browser/ui/search/instant_page_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698