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

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

Issue 2207493002: Add CategoryInfo for meta information of content suggestions Categories (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698