| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_CACHE_INTERNAL_H_ | 5 #ifndef IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_CACHE_INTERNAL_H_ |
| 6 #define IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_CACHE_INTERNAL_H_ | 6 #define IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_CACHE_INTERNAL_H_ |
| 7 | 7 |
| 8 #import "ios/chrome/browser/snapshots/snapshot_cache_internal.h" | 8 #import "ios/chrome/browser/snapshots/snapshot_cache_internal.h" |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| 11 class FilePath; | 11 class FilePath; |
| 12 } | 12 } |
| 13 | 13 |
| 14 @class NSString; | 14 @class NSString; |
| 15 | 15 |
| 16 @interface SnapshotCache (Internal) | 16 @interface SnapshotCache (Internal) |
| 17 // Returns filepath to the color snapshot of |sessionID|. | 17 // Returns filepath to the color snapshot of |sessionID|. |
| 18 + (base::FilePath)imagePathForSessionID:(NSString*)sessionID; | 18 + (base::FilePath)imagePathForSessionID:(NSString*)sessionID; |
| 19 // Returns filepath to the greyscale snapshot of |sessionID|. | 19 // Returns filepath to the greyscale snapshot of |sessionID|. |
| 20 + (base::FilePath)greyImagePathForSessionID:(NSString*)sessionID; | 20 + (base::FilePath)greyImagePathForSessionID:(NSString*)sessionID; |
| 21 // Returns whether the snapshots are cached in a LRU cache. | 21 // Returns whether the snapshots are cached in a LRU cache. |
| 22 - (BOOL)usesLRUCache; | 22 - (BOOL)usesLRUCache; |
| 23 // Returns whether the in-memory cache (as opposed to the on-disk cache) is | |
| 24 // enabled. | |
| 25 - (BOOL)inMemoryCacheIsEnabled; | |
| 26 @end | 23 @end |
| 27 | 24 |
| 28 #endif // IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_CACHE_INTERNAL_H_ | 25 #endif // IOS_CHROME_BROWSER_SNAPSHOTS_SNAPSHOT_CACHE_INTERNAL_H_ |
| OLD | NEW |