| // Copyright 2016 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef COMPONENTS_NTP_TILES_NTP_TILE_H_ |
| #define COMPONENTS_NTP_TILES_NTP_TILE_H_ |
| #include "base/time/time.h" |
| #include "components/ntp_tiles/tile_source.h" |
| #include "components/ntp_tiles/tile_title_source.h" |
| // A suggested site shown on the New Tab Page. |
| TileTitleSource title_source; |
| // This won't be empty, but might 404 etc. |
| // Timestamp representing when the tile was originally generated (produced by |
| base::Time data_generation_time; |
| // True if this tile is a custom link and was initialized from a Most Visited |
| // item. Used for debugging. |
| bool from_most_visited = false; |
| bool operator==(const NTPTile& a, const NTPTile& b); |
| bool operator!=(const NTPTile& a, const NTPTile& b); |
| using NTPTilesVector = std::vector<NTPTile>; |
| #endif // COMPONENTS_NTP_TILES_NTP_TILE_H_ |