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

Side by Side Diff: chrome/renderer/searchbox/searchbox.h

Issue 15907006: Rip out browser-side RID caching for most visited items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 5 #ifndef CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 size_t selection_start, 138 size_t selection_start,
139 size_t selection_end); 139 size_t selection_end);
140 void OnFocusChanged(OmniboxFocusState new_focus_state, 140 void OnFocusChanged(OmniboxFocusState new_focus_state,
141 OmniboxFocusChangeReason reason); 141 OmniboxFocusChangeReason reason);
142 void OnSetDisplayInstantResults(bool display_instant_results); 142 void OnSetDisplayInstantResults(bool display_instant_results);
143 void OnThemeChanged(const ThemeBackgroundInfo& theme_info); 143 void OnThemeChanged(const ThemeBackgroundInfo& theme_info);
144 void OnThemeAreaHeightChanged(int height); 144 void OnThemeAreaHeightChanged(int height);
145 void OnFontInformationReceived(const string16& omnibox_font, 145 void OnFontInformationReceived(const string16& omnibox_font,
146 size_t omnibox_font_size); 146 size_t omnibox_font_size);
147 void OnMostVisitedChanged( 147 void OnMostVisitedChanged(
148 const std::vector<InstantMostVisitedItemIDPair>& items); 148 const std::vector<InstantMostVisitedItem>& items);
149 149
150 // Returns the current zoom factor of the render view or 1 on failure. 150 // Returns the current zoom factor of the render view or 1 on failure.
151 double GetZoom() const; 151 double GetZoom() const;
152 152
153 // Sets the searchbox values to their initial value. 153 // Sets the searchbox values to their initial value.
154 void Reset(); 154 void Reset();
155 155
156 // Sets the query to a new value. 156 // Sets the query to a new value.
157 void SetQuery(const string16& query, bool verbatim); 157 void SetQuery(const string16& query, bool verbatim);
158 158
(...skipping 14 matching lines...) Expand all
173 string16 omnibox_font_; 173 string16 omnibox_font_;
174 size_t omnibox_font_size_; 174 size_t omnibox_font_size_;
175 InstantRestrictedIDCache<InstantAutocompleteResult> 175 InstantRestrictedIDCache<InstantAutocompleteResult>
176 autocomplete_results_cache_; 176 autocomplete_results_cache_;
177 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; 177 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_;
178 178
179 DISALLOW_COPY_AND_ASSIGN(SearchBox); 179 DISALLOW_COPY_AND_ASSIGN(SearchBox);
180 }; 180 };
181 181
182 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 182 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698