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_SUGGESTIONS_IMAGE_UPDA TER_H_ | |
| 6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_IMAGE_UPDA TER_H_ | |
| 7 | |
| 8 #import <Foundation/Foundation.h> | |
| 9 | |
| 10 #include <string> | |
|
marq (ping after 24h)
2017/02/21 11:27:08
Doesn't look like this is needed.
gambard
2017/02/21 15:07:53
Done.
| |
| 11 | |
| 12 namespace gfx { | |
| 13 class Image; | |
| 14 } | |
| 15 | |
| 16 @class ContentSuggestionID; | |
| 17 | |
| 18 // Protocol for an object able to fetch the image associated with a suggestion. | |
| 19 @protocol ContentSuggestionsImageFetcher | |
| 20 | |
| 21 // Fetches the image associated with the |suggestionID| and passes it to the | |
| 22 // |callback|. | |
| 23 - (void)fetchImageForSuggestion:(ContentSuggestionID*)suggestionID | |
| 24 callback:(void (^)(const gfx::Image&))callback; | |
| 25 | |
| 26 @end | |
| 27 | |
| 28 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_IMAGE_U PDATER_H_ | |
| OLD | NEW |