| 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> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 namespace ntp_snippets { | 16 namespace ntp_snippets { |
| 17 | 17 |
| 18 // A content suggestion for the new tab page, which can be an article or an | 18 // A content suggestion for the new tab page, which can be an article or an |
| 19 // offline page, for example. | 19 // offline page, for example. |
| 20 // NOTE: This class is not yet in use, please use NTPSnippet for now | |
| 21 // (see ntp_snippet.h). | |
| 22 class ContentSuggestion { | 20 class ContentSuggestion { |
| 23 public: | 21 public: |
| 24 // Creates a new ContentSuggestion. The caller must ensure that the |id| | 22 // Creates a new ContentSuggestion. The caller must ensure that the |id| |
| 25 // passed in here is unique application-wide. | 23 // passed in here is unique application-wide. |
| 26 ContentSuggestion(const std::string& id, | 24 ContentSuggestion(const std::string& id, |
| 27 const GURL& url); | 25 const GURL& url); |
| 28 ContentSuggestion(ContentSuggestion&&); | 26 ContentSuggestion(ContentSuggestion&&); |
| 29 ContentSuggestion& operator=(ContentSuggestion&&); | 27 ContentSuggestion& operator=(ContentSuggestion&&); |
| 30 | 28 |
| 31 ~ContentSuggestion(); | 29 ~ContentSuggestion(); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 base::Time publish_date_; | 80 base::Time publish_date_; |
| 83 std::string publisher_name_; | 81 std::string publisher_name_; |
| 84 float score_; | 82 float score_; |
| 85 | 83 |
| 86 DISALLOW_COPY_AND_ASSIGN(ContentSuggestion); | 84 DISALLOW_COPY_AND_ASSIGN(ContentSuggestion); |
| 87 }; | 85 }; |
| 88 | 86 |
| 89 } // namespace ntp_snippets | 87 } // namespace ntp_snippets |
| 90 | 88 |
| 91 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTION_H_ | 89 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTION_H_ |
| OLD | NEW |