| 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_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 Loading... |
| 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_ |
| OLD | NEW |