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_SNAPSHOTS_SNAPSHOT_CACHE_OBSERVER_H_
6 #define IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_CACHE_OBSERVER_H_
7 
8 #import <Foundation/Foundation.h>
9 
10 @class SnapshotCache;
11 
12 // Interface for listening to events occurring to the SnapshotCache.
13 @protocol SnapshotCacheObserver
14 @optional
15 // Tells the observing object that the |snapshotCache| was updated with a new
16 // snapshot corresponding to |identifier|.
17 - (void)snapshotCache:(SnapshotCache*)snapshotCache
18     didUpdateSnapshotForIdentifier:(NSString*)identifier;
19 @end
20 
21 #endif  // IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_CACHE_OBSERVER_H_
22