OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_NTP_TILES_NTP_TILE_H_ | 5 #ifndef COMPONENTS_NTP_TILES_NTP_TILE_H_ |
6 #define COMPONENTS_NTP_TILES_NTP_TILE_H_ | 6 #define COMPONENTS_NTP_TILES_NTP_TILE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 19 matching lines...) Expand all Loading... | |
30 | 30 |
31 // A suggested site shown on the New Tab Page. | 31 // A suggested site shown on the New Tab Page. |
32 struct NTPTile { | 32 struct NTPTile { |
33 base::string16 title; | 33 base::string16 title; |
34 GURL url; | 34 GURL url; |
35 NTPTileSource source; | 35 NTPTileSource source; |
36 | 36 |
37 // Only valid for source == WHITELIST (empty otherwise). | 37 // Only valid for source == WHITELIST (empty otherwise). |
38 base::FilePath whitelist_icon_path; | 38 base::FilePath whitelist_icon_path; |
39 | 39 |
40 // Only valid for source == SUGGESTIONS_SERVICE (empty otherwise). | |
sfiera
2016/11/28 13:11:12
Are they always non-empty for the suggestions serv
Marc Treib
2016/11/28 13:19:29
I believe the favicon URL always points to some ch
sfiera
2016/11/29 10:24:03
I would appreciate this kind of information in the
Marc Treib
2016/11/29 15:20:13
Not sure how much of this we want to "fixate" in t
| |
41 GURL thumbnail_url; | |
42 GURL favicon_url; | |
43 | |
40 NTPTile(); | 44 NTPTile(); |
41 NTPTile(const NTPTile&); | 45 NTPTile(const NTPTile&); |
42 ~NTPTile(); | 46 ~NTPTile(); |
43 }; | 47 }; |
44 | 48 |
45 using NTPTilesVector = std::vector<NTPTile>; | 49 using NTPTilesVector = std::vector<NTPTile>; |
46 | 50 |
47 } // namespace ntp_tiles | 51 } // namespace ntp_tiles |
48 | 52 |
49 #endif // COMPONENTS_NTP_TILES_NTP_TILE_H_ | 53 #endif // COMPONENTS_NTP_TILES_NTP_TILE_H_ |
OLD | NEW |