Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_NTP_SNIPPETS_CATEGORY_INFO_H_ | |
| 6 #define COMPONENTS_NTP_SNIPPETS_CATEGORY_INFO_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/strings/string16.h" | |
| 10 | |
| 11 namespace ntp_snippets { | |
| 12 | |
| 13 // Contains static meta information about a Category. | |
| 14 class CategoryInfo { | |
| 15 public: | |
| 16 CategoryInfo(const base::string16& title); | |
| 17 CategoryInfo(CategoryInfo&&); | |
| 18 CategoryInfo& operator=(CategoryInfo&&); | |
|
Marc Treib
2016/08/04 09:46:29
Are these required?
Philipp Keck
2016/08/04 11:48:18
Seems so. Otherwise "return CategoryInfo(someStrin
| |
| 19 | |
| 20 ~CategoryInfo(); | |
| 21 | |
| 22 // Localized title of the category. | |
| 23 const base::string16& title() const { return title_; } | |
| 24 | |
| 25 private: | |
| 26 base::string16 title_; | |
| 27 | |
| 28 DISALLOW_COPY_AND_ASSIGN(CategoryInfo); | |
| 29 }; | |
| 30 | |
| 31 } // namespace ntp_snippets | |
| 32 | |
| 33 #endif // COMPONENTS_NTP_SNIPPETS_CATEGORY_INFO_H_ | |
| OLD | NEW |