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

Side by Side Diff: chrome/browser/ui/search/instant_page.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 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 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_
6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); 186 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info);
187 187
188 // Tells the page whether it is allowed to display Instant results. 188 // Tells the page whether it is allowed to display Instant results.
189 void SetDisplayInstantResults(bool display_instant_results); 189 void SetDisplayInstantResults(bool display_instant_results);
190 190
191 // Tells the page that the omnibox focus has changed. 191 // Tells the page that the omnibox focus has changed.
192 void FocusChanged(OmniboxFocusState state, OmniboxFocusChangeReason reason); 192 void FocusChanged(OmniboxFocusState state, OmniboxFocusChangeReason reason);
193 193
194 // Tells the page about new Most Visited data. 194 // Tells the page about new Most Visited data.
195 void SendMostVisitedItems( 195 void SendMostVisitedItems(
196 const std::vector<InstantMostVisitedItemIDPair>& items); 196 const std::vector<InstantMostVisitedItem>& items);
197 197
198 protected: 198 protected:
199 InstantPage(Delegate* delegate, const std::string& instant_url); 199 InstantPage(Delegate* delegate, const std::string& instant_url);
200 200
201 // Sets |contents| as the page to communicate with. |contents| may be NULL, 201 // Sets |contents| as the page to communicate with. |contents| may be NULL,
202 // which effectively stops all communication. 202 // which effectively stops all communication.
203 void SetContents(content::WebContents* contents); 203 void SetContents(content::WebContents* contents);
204 204
205 Delegate* delegate() const { return delegate_; } 205 Delegate* delegate() const { return delegate_; }
206 206
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 269
270 Delegate* const delegate_; 270 Delegate* const delegate_;
271 const std::string instant_url_; 271 const std::string instant_url_;
272 bool supports_instant_; 272 bool supports_instant_;
273 bool instant_support_determined_; 273 bool instant_support_determined_;
274 274
275 DISALLOW_COPY_AND_ASSIGN(InstantPage); 275 DISALLOW_COPY_AND_ASSIGN(InstantPage);
276 }; 276 };
277 277
278 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ 278 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698