blob: 9cd175dcbfd80a432344b0789005324ead7f30c6 [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.
#import "ios/chrome/browser/ui/history/history_entry_item_interface.h"
#import "ios/chrome/browser/ui/table_view/cells/table_view_item.h"
@protocol HistoryEntryItemDelegate;
// Item that display a History entry. A history entry contains the title of the
// website, the URL and a timestamp of a previously visited website.
@interface HistoryEntryItem : TableViewItem<HistoryEntryItemInterface>
// The |delegate| is used to perform accessibility actions, it might be nil and
// it will not be retained.
- (instancetype)initWithType:(NSInteger)type
- (instancetype)initWithType:(NSInteger)type NS_UNAVAILABLE;
// Identifier to match a URLItem with its URLCell. Uses as "unique"
// identifier. Ensures that cell still is displaying item's contents before
// setting favicon in async callback. Even if there is a case of cells with the
// same identifier, it would be still valid to set that favicon for the cell.
@property(nonatomic, readonly) NSString* uniqueIdentifier;