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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } |
OLD | NEW |