blob: 4b0516a2441e1c83168eb7edc81b9d0f16646a57 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_TAB_GRID_GRID_IMAGE_DATA_SOURCE_H_
#define IOS_CHROME_BROWSER_UI_TAB_GRID_GRID_IMAGE_DATA_SOURCE_H_
#import <UIKit/UIKit.h>
// Protocol that the grid UI uses to asynchronously pull images for cells in the
// grid.
@protocol GridImageDataSource
// Requests the receiver to provide a snapshot image corresponding to
// |identifier|. |completion| is called with the image if it exists.
- (void)snapshotForIdentifier:(NSString*)identifier
completion:(void (^)(UIImage*))completion;
// Requests the receiver to provide a favicon image corresponding to
// |identifier|. |completion| is called with the image if it exists.
- (void)faviconForIdentifier:(NSString*)identifier
completion:(void (^)(UIImage*))completion;
@end
#endif // IOS_CHROME_BROWSER_UI_TAB_GRID_GRID_IMAGE_DATA_SOURCE_H_