Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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 IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTION_ID_H_ | |
| 6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTION_ID_H_ | |
| 7 | |
| 8 #import <Foundation/Foundation.h> | |
| 9 | |
| 10 #include <string> | |
| 11 | |
| 12 @class ContentSuggestionsSectionInformation; | |
| 13 | |
| 14 // An class identifying a suggestion. | |
| 15 @interface ContentSuggestionID : NSObject | |
| 16 | |
| 17 @property(nonatomic, strong) ContentSuggestionsSectionInformation* sectionInfo; | |
|
gambard
2017/02/20 09:33:14
I am not sure about using a ContentSuggestionsSect
lpromero
2017/02/21 10:33:34
I am more unsure about ContentSuggestionID.IDInSec
gambard
2017/02/21 14:37:48
Done.
| |
| 18 // Must be unique inside a section. | |
| 19 @property(nonatomic, assign) std::string IDInSection; | |
| 20 | |
| 21 @end | |
| 22 | |
| 23 // A protocol for an object having an ID. | |
| 24 @protocol ContentSuggestionIDHolder | |
| 25 | |
| 26 @property(nonatomic, strong) ContentSuggestionID* suggestionID; | |
| 27 | |
| 28 @end | |
| 29 | |
| 30 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTION_ID_H_ | |
| OLD | NEW |