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

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

Issue 15388002: Supporting high dpi favicons in Instant Extended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing Samarth's comments 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // |url|. If the |transient_url| is invalid, returns false and |url| is not 120 // |url|. If the |transient_url| is invalid, returns false and |url| is not
121 // set. 121 // set.
122 // 122 //
123 // Valid form of |transient_url|: 123 // Valid form of |transient_url|:
124 // chrome-search://thumb/<render_view_id>/<most_visited_item_id> 124 // chrome-search://thumb/<render_view_id>/<most_visited_item_id>
125 bool GenerateThumbnailURLFromTransientURL(const GURL& transient_url, 125 bool GenerateThumbnailURLFromTransientURL(const GURL& transient_url,
126 GURL* url) const; 126 GURL* url) const;
127 127
128 // Generates the favicon URL of the most visited item specified by the 128 // Generates the favicon URL of the most visited item specified by the
129 // |transient_url|. If the |transient_url| is valid, returns true and fills in 129 // |transient_url|. If the |transient_url| is valid, returns true and fills in
130 // |url|. If the |transient_url| is invalid, returns false and |url| is not 130 // |url|. If the |transient_url| is invalid, returns true and |url| is set to
131 // set. 131 // "chrome-search://favicon/" in order to prevent the invalid URL to be
132 // requested.
132 // 133 //
133 // Valid form of |transient_url|: 134 // Valid forms of |transient_url|:
134 // chrome-search://favicon/<render_view_id>/<most_visited_item_id> 135 // chrome-search://favicon/<view_id>/<restricted_id>
136 // chrome-search://favicon/<favicon_parameters>/<view_id>/<restricted_id>
135 bool GenerateFaviconURLFromTransientURL(const GURL& transient_url, 137 bool GenerateFaviconURLFromTransientURL(const GURL& transient_url,
136 GURL* url) const; 138 GURL* url) const;
137 139
138 private: 140 private:
139 // Overridden from content::RenderViewObserver: 141 // Overridden from content::RenderViewObserver:
140 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 142 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
141 143
142 void OnChange(const string16& query, 144 void OnChange(const string16& query,
143 bool verbatim, 145 bool verbatim,
144 size_t selection_start, 146 size_t selection_start,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 string16 omnibox_font_; 198 string16 omnibox_font_;
197 size_t omnibox_font_size_; 199 size_t omnibox_font_size_;
198 InstantRestrictedIDCache<InstantAutocompleteResult> 200 InstantRestrictedIDCache<InstantAutocompleteResult>
199 autocomplete_results_cache_; 201 autocomplete_results_cache_;
200 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; 202 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_;
201 203
202 DISALLOW_COPY_AND_ASSIGN(SearchBox); 204 DISALLOW_COPY_AND_ASSIGN(SearchBox);
203 }; 205 };
204 206
205 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 207 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698