blob: 34788b2ff50c4592effcb4533034b5a6f8242152 [file] [log] [blame]
// Copyright 2017 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_SNAPSHOTS_SNAPSHOT_CACHE_OBSERVER_H_
#define IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_CACHE_OBSERVER_H_
#import <Foundation/Foundation.h>
@class SnapshotCache;
// Interface for listening to events occurring to the SnapshotCache.
@protocol SnapshotCacheObserver
@optional
// Tells the observing object that the |snapshotCache| was updated with a new
// snapshot corresponding to |identifier|.
- (void)snapshotCache:(SnapshotCache*)snapshotCache
didUpdateSnapshotForIdentifier:(NSString*)identifier;
@end
#endif // IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_CACHE_OBSERVER_H_