OLD | NEW |
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // |url|. If the |transient_url| is invalid, returns true and |url| is set to | 51 // |url|. If the |transient_url| is invalid, returns true and |url| is set to |
52 // "chrome-search://favicon/" in order to prevent the invalid URL to be | 52 // "chrome-search://favicon/" in order to prevent the invalid URL to be |
53 // requested. | 53 // requested. |
54 // | 54 // |
55 // Valid forms of |transient_url|: | 55 // Valid forms of |transient_url|: |
56 // chrome-search://favicon/<view_id>/<restricted_id> | 56 // chrome-search://favicon/<view_id>/<restricted_id> |
57 // chrome-search://favicon/<favicon_parameters>/<view_id>/<restricted_id> | 57 // chrome-search://favicon/<favicon_parameters>/<view_id>/<restricted_id> |
58 bool GenerateFaviconURLFromTransientURL(const GURL& transient_url, | 58 bool GenerateFaviconURLFromTransientURL(const GURL& transient_url, |
59 GURL* url) const; | 59 GURL* url) const; |
60 | 60 |
| 61 bool GenerateBigIconURLFromTransientURL(const GURL& transient_url, |
| 62 GURL* url) const; |
| 63 |
| 64 bool GenerateFallbackIconURLFromTransientURL(const GURL& transient_url, |
| 65 GURL* url) const; |
| 66 |
61 // Generates the thumbnail URL of the most visited item specified by the | 67 // Generates the thumbnail URL of the most visited item specified by the |
62 // |transient_url|. If the |transient_url| is valid, returns true and fills in | 68 // |transient_url|. If the |transient_url| is valid, returns true and fills in |
63 // |url|. If the |transient_url| is invalid, returns false and |url| is not | 69 // |url|. If the |transient_url| is invalid, returns false and |url| is not |
64 // set. | 70 // set. |
65 // | 71 // |
66 // Valid form of |transient_url|: | 72 // Valid form of |transient_url|: |
67 // chrome-search://thumb/<render_view_id>/<most_visited_item_id> | 73 // chrome-search://thumb/<render_view_id>/<most_visited_item_id> |
68 bool GenerateThumbnailURLFromTransientURL(const GURL& transient_url, | 74 bool GenerateThumbnailURLFromTransientURL(const GURL& transient_url, |
69 GURL* url) const; | 75 GURL* url) const; |
70 | 76 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 ThemeBackgroundInfo theme_info_; | 164 ThemeBackgroundInfo theme_info_; |
159 base::string16 query_; | 165 base::string16 query_; |
160 EmbeddedSearchRequestParams embedded_search_request_params_; | 166 EmbeddedSearchRequestParams embedded_search_request_params_; |
161 int start_margin_; | 167 int start_margin_; |
162 InstantSuggestion suggestion_; | 168 InstantSuggestion suggestion_; |
163 | 169 |
164 DISALLOW_COPY_AND_ASSIGN(SearchBox); | 170 DISALLOW_COPY_AND_ASSIGN(SearchBox); |
165 }; | 171 }; |
166 | 172 |
167 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ | 173 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ |
OLD | NEW |