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 20 matching lines...) Expand all Loading... |
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 NTPTile(); | 40 NTPTile(); |
| 41 NTPTile(const NTPTile&); |
41 ~NTPTile(); | 42 ~NTPTile(); |
42 | |
43 NTPTile(NTPTile&&); | |
44 NTPTile& operator=(NTPTile&&); | |
45 | |
46 private: | |
47 DISALLOW_COPY_AND_ASSIGN(NTPTile); | |
48 }; | 43 }; |
49 | 44 |
50 using NTPTilesVector = std::vector<NTPTile>; | 45 using NTPTilesVector = std::vector<NTPTile>; |
51 | 46 |
52 } // namespace ntp_tiles | 47 } // namespace ntp_tiles |
53 | 48 |
54 #endif // COMPONENTS_NTP_TILES_NTP_TILE_H_ | 49 #endif // COMPONENTS_NTP_TILES_NTP_TILE_H_ |
OLD | NEW |