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

Side by Side Diff: chrome/common/instant_types.h

Issue 12732005: Most visited thumbnails and favicons need id-based urls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adds proper handling of ThumbnailSource Created 7 years, 9 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_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 9
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 ThemeBackgroundImageAlignment image_vertical_alignment; 145 ThemeBackgroundImageAlignment image_vertical_alignment;
146 146
147 // The theme background image tiling is only valid if |theme_id| is valid. 147 // The theme background image tiling is only valid if |theme_id| is valid.
148 ThemeBackgroundImageTiling image_tiling; 148 ThemeBackgroundImageTiling image_tiling;
149 149
150 // The theme background image height. 150 // The theme background image height.
151 // Value is only valid if |theme_id| is valid. 151 // Value is only valid if |theme_id| is valid.
152 uint16 image_height; 152 uint16 image_height;
153 }; 153 };
154 154
155 // A most visited item. 155 struct InstantMostVisitedItem {
156 struct MostVisitedItem { 156 InstantMostVisitedItem() : restricted_id(0) {}
157 // URL of the most visited page. 157
158 // A private identifier used on the browser side when retrieving assets.
159 uint64 restricted_id;
160
161 // The URL of the Most Visited item.
158 GURL url; 162 GURL url;
159 163
160 // Title of the most visited page. 164 // The title of the Most Visited page. May be empty, in which case the |url|
165 // is used as the title.
161 string16 title; 166 string16 title;
162 }; 167 };
163 168
164 #endif // CHROME_COMMON_INSTANT_TYPES_H_ 169 #endif // CHROME_COMMON_INSTANT_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698