| 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_COMMON_INSTANT_TYPES_H_ | 5 #ifndef CHROME_COMMON_INSTANT_TYPES_H_ |
| 6 #define CHROME_COMMON_INSTANT_TYPES_H_ | 6 #define CHROME_COMMON_INSTANT_TYPES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 116 |
| 117 // True if theme has attribution logo. | 117 // True if theme has attribution logo. |
| 118 // Value is only valid if |theme_id| is valid. | 118 // Value is only valid if |theme_id| is valid. |
| 119 bool has_attribution; | 119 bool has_attribution; |
| 120 | 120 |
| 121 // True if theme has an alternate logo. | 121 // True if theme has an alternate logo. |
| 122 bool logo_alternate; | 122 bool logo_alternate; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 struct InstantMostVisitedItem { | 125 struct InstantMostVisitedItem { |
| 126 InstantMostVisitedItem(); |
| 127 ~InstantMostVisitedItem(); |
| 128 |
| 126 // The URL of the Most Visited item. | 129 // The URL of the Most Visited item. |
| 127 GURL url; | 130 GURL url; |
| 128 | 131 |
| 129 // The title of the Most Visited page. May be empty, in which case the |url| | 132 // The title of the Most Visited page. May be empty, in which case the |url| |
| 130 // is used as the title. | 133 // is used as the title. |
| 131 base::string16 title; | 134 base::string16 title; |
| 135 |
| 136 // The external URL of the thumbnail associated with this page. |
| 137 GURL thumbnail; |
| 138 |
| 139 // The external URL of the favicon associated with this page. |
| 140 GURL favicon; |
| 132 }; | 141 }; |
| 133 | 142 |
| 134 // An InstantMostVisitedItem along with its assigned restricted ID. | 143 // An InstantMostVisitedItem along with its assigned restricted ID. |
| 135 typedef std::pair<InstantRestrictedID, InstantMostVisitedItem> | 144 typedef std::pair<InstantRestrictedID, InstantMostVisitedItem> |
| 136 InstantMostVisitedItemIDPair; | 145 InstantMostVisitedItemIDPair; |
| 137 | 146 |
| 138 // Embedded search request logging stats params. | 147 // Embedded search request logging stats params. |
| 139 extern const char kSearchQueryKey[]; | 148 extern const char kSearchQueryKey[]; |
| 140 extern const char kOriginalQueryKey[]; | 149 extern const char kOriginalQueryKey[]; |
| 141 extern const char kRLZParameterKey[]; | 150 extern const char kRLZParameterKey[]; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 165 | 174 |
| 166 // The optional assisted query stats, aka AQS, used for logging purposes. | 175 // The optional assisted query stats, aka AQS, used for logging purposes. |
| 167 // This string contains impressions of all autocomplete matches shown | 176 // This string contains impressions of all autocomplete matches shown |
| 168 // at the query submission time. For privacy reasons, we require the | 177 // at the query submission time. For privacy reasons, we require the |
| 169 // search provider to support HTTPS protocol in order to receive the AQS | 178 // search provider to support HTTPS protocol in order to receive the AQS |
| 170 // param. | 179 // param. |
| 171 // For more details, see http://goto.google.com/binary-clients-logging. | 180 // For more details, see http://goto.google.com/binary-clients-logging. |
| 172 base::string16 assisted_query_stats; | 181 base::string16 assisted_query_stats; |
| 173 }; | 182 }; |
| 174 #endif // CHROME_COMMON_INSTANT_TYPES_H_ | 183 #endif // CHROME_COMMON_INSTANT_TYPES_H_ |
| OLD | NEW |