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

Side by Side Diff: components/ntp_snippets/content_suggestion.h

Issue 2297903004: Remove ContentSuggestion::salient_image_url_. (Closed)
Patch Set: 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_snippets/ntp_snippets_service_unittest.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_SNIPPETS_CONTENT_SUGGESTION_H_ 5 #ifndef COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTION_H_
6 #define COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTION_H_ 6 #define COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTION_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // cannot provide score values. 70 // cannot provide score values.
71 float score() const { return score_; } 71 float score() const { return score_; }
72 void set_score(float score) { score_ = score; } 72 void set_score(float score) { score_ = score; }
73 73
74 private: 74 private:
75 std::string id_; 75 std::string id_;
76 GURL url_; 76 GURL url_;
77 GURL amp_url_; 77 GURL amp_url_;
78 base::string16 title_; 78 base::string16 title_;
79 base::string16 snippet_text_; 79 base::string16 snippet_text_;
80 GURL salient_image_url_;
81 base::Time publish_date_; 80 base::Time publish_date_;
82 base::string16 publisher_name_; 81 base::string16 publisher_name_;
83 float score_; 82 float score_;
84 83
85 DISALLOW_COPY_AND_ASSIGN(ContentSuggestion); 84 DISALLOW_COPY_AND_ASSIGN(ContentSuggestion);
86 }; 85 };
87 86
88 } // namespace ntp_snippets 87 } // namespace ntp_snippets
89 88
90 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTION_H_ 89 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTION_H_
OLDNEW
« no previous file with comments | « no previous file | components/ntp_snippets/ntp_snippets_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698