| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |