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 // Valid forms of |transient_url|: | |
62 // chrome-search://large-icon/<view_id>/<restricted_id> | |
63 // chrome-search://large-icon/<size>/<view_id>/<restricted_id> | |
64 bool GenerateLargeIconURLFromTransientURL(const GURL& transient_url, | |
James Hawkins
2015/03/17 21:46:41
It seems like having three similarly named methods
huangs
2015/03/18 21:43:10
I think we can even do better: Yank all these out
| |
65 GURL* url) const; | |
66 | |
67 // Valid forms of |transient_url|: | |
68 // chrome-search://fallback-icon/<view_id>/<restricted_id> | |
69 // chrome-search://fallback-icon/<icon styles>/<view_id>/<restricted_id> | |
70 bool GenerateFallbackIconURLFromTransientURL(const GURL& transient_url, | |
71 GURL* url) const; | |
72 | |
61 // Generates the thumbnail URL of the most visited item specified by the | 73 // 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 | 74 // |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 | 75 // |url|. If the |transient_url| is invalid, returns false and |url| is not |
64 // set. | 76 // set. |
65 // | 77 // |
66 // Valid form of |transient_url|: | 78 // Valid form of |transient_url|: |
67 // chrome-search://thumb/<render_view_id>/<most_visited_item_id> | 79 // chrome-search://thumb/<render_view_id>/<most_visited_item_id> |
68 bool GenerateThumbnailURLFromTransientURL(const GURL& transient_url, | 80 bool GenerateThumbnailURLFromTransientURL(const GURL& transient_url, |
69 GURL* url) const; | 81 GURL* url) const; |
70 | 82 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
158 ThemeBackgroundInfo theme_info_; | 170 ThemeBackgroundInfo theme_info_; |
159 base::string16 query_; | 171 base::string16 query_; |
160 EmbeddedSearchRequestParams embedded_search_request_params_; | 172 EmbeddedSearchRequestParams embedded_search_request_params_; |
161 int start_margin_; | 173 int start_margin_; |
162 InstantSuggestion suggestion_; | 174 InstantSuggestion suggestion_; |
163 | 175 |
164 DISALLOW_COPY_AND_ASSIGN(SearchBox); | 176 DISALLOW_COPY_AND_ASSIGN(SearchBox); |
165 }; | 177 }; |
166 | 178 |
167 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ | 179 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ |
OLD | NEW |