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

Side by Side Diff: components/ntp_tiles/ntp_tile.h

Issue 2341963002: Make NTPTile copyable. (Closed)
Patch Set: Add copy constructor. Created 4 years, 3 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
« no previous file with comments | « no previous file | components/ntp_tiles/ntp_tile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/ntp_tiles/ntp_tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698