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

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

Issue 15907006: Rip out browser-side RID caching for most visited items. (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
« no previous file with comments | « chrome/browser/ui/search/instant_page.h ('k') | chrome/browser/ui/search/search_tab_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 Send(new ChromeViewMsg_SearchBoxSetDisplayInstantResults( 111 Send(new ChromeViewMsg_SearchBoxSetDisplayInstantResults(
112 routing_id(), display_instant_results)); 112 routing_id(), display_instant_results));
113 } 113 }
114 114
115 void InstantPage::FocusChanged(OmniboxFocusState state, 115 void InstantPage::FocusChanged(OmniboxFocusState state,
116 OmniboxFocusChangeReason reason) { 116 OmniboxFocusChangeReason reason) {
117 Send(new ChromeViewMsg_SearchBoxFocusChanged(routing_id(), state, reason)); 117 Send(new ChromeViewMsg_SearchBoxFocusChanged(routing_id(), state, reason));
118 } 118 }
119 119
120 void InstantPage::SendMostVisitedItems( 120 void InstantPage::SendMostVisitedItems(
121 const std::vector<InstantMostVisitedItemIDPair>& items) { 121 const std::vector<InstantMostVisitedItem>& items) {
122 Send(new ChromeViewMsg_SearchBoxMostVisitedItemsChanged(routing_id(), items)); 122 Send(new ChromeViewMsg_SearchBoxMostVisitedItemsChanged(routing_id(), items));
123 } 123 }
124 124
125 void InstantPage::ToggleVoiceSearch() { 125 void InstantPage::ToggleVoiceSearch() {
126 Send(new ChromeViewMsg_SearchBoxToggleVoiceSearch(routing_id())); 126 Send(new ChromeViewMsg_SearchBoxToggleVoiceSearch(routing_id()));
127 } 127 }
128 128
129 InstantPage::InstantPage(Delegate* delegate, const std::string& instant_url) 129 InstantPage::InstantPage(Delegate* delegate, const std::string& instant_url)
130 : delegate_(delegate), 130 : delegate_(delegate),
131 instant_url_(instant_url), 131 instant_url_(instant_url),
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 delegate_->DeleteMostVisitedItem(url); 311 delegate_->DeleteMostVisitedItem(url);
312 } 312 }
313 313
314 void InstantPage::OnUndoMostVisitedDeletion(const GURL& url) { 314 void InstantPage::OnUndoMostVisitedDeletion(const GURL& url) {
315 delegate_->UndoMostVisitedDeletion(url); 315 delegate_->UndoMostVisitedDeletion(url);
316 } 316 }
317 317
318 void InstantPage::OnUndoAllMostVisitedDeletions() { 318 void InstantPage::OnUndoAllMostVisitedDeletions() {
319 delegate_->UndoAllMostVisitedDeletions(); 319 delegate_->UndoAllMostVisitedDeletions();
320 } 320 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_page.h ('k') | chrome/browser/ui/search/search_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698