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

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

Issue 2532103002: Add support for components/ntp_tiles in InstantService (Closed)
Patch Set: . Created 4 years 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
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"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "components/ntp_tiles/ntp_tile_source.h" 13 #include "components/ntp_tiles/ntp_tile_source.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 namespace ntp_tiles { 16 namespace ntp_tiles {
17 17
18 // A suggested site shown on the New Tab Page. 18 // A suggested site shown on the New Tab Page.
19 struct NTPTile { 19 struct NTPTile {
20 base::string16 title; 20 base::string16 title;
21 GURL url; 21 GURL url;
22 NTPTileSource source; 22 NTPTileSource source;
23 23
24 // Only valid for source == WHITELIST (empty otherwise). 24 // Only valid for source == WHITELIST (empty otherwise).
25 base::FilePath whitelist_icon_path; 25 base::FilePath whitelist_icon_path;
26 26
27 // Only valid for source == SUGGESTIONS_SERVICE (empty otherwise).
28 // May point to a local chrome:// URL or to a remote one. May be empty.
29 GURL thumbnail_url;
30 // This won't be empty, but might 404 etc.
31 GURL favicon_url;
32
27 NTPTile(); 33 NTPTile();
28 NTPTile(const NTPTile&); 34 NTPTile(const NTPTile&);
29 ~NTPTile(); 35 ~NTPTile();
30 }; 36 };
31 37
32 using NTPTilesVector = std::vector<NTPTile>; 38 using NTPTilesVector = std::vector<NTPTile>;
33 39
34 } // namespace ntp_tiles 40 } // namespace ntp_tiles
35 41
36 #endif // COMPONENTS_NTP_TILES_NTP_TILE_H_ 42 #endif // COMPONENTS_NTP_TILES_NTP_TILE_H_
OLDNEW
« chrome/browser/search/instant_service.cc ('K') | « components/ntp_tiles/most_visited_sites.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698