Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Unified Diff: ios/chrome/browser/snapshots/snapshot_cache.h

Issue 2561133002: Moves include of objc_property_releaser out of a header. (Closed)
Patch Set: fix_compile Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/chrome/browser/snapshots/snapshot_cache.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/snapshots/snapshot_cache.h
diff --git a/ios/chrome/browser/snapshots/snapshot_cache.h b/ios/chrome/browser/snapshots/snapshot_cache.h
index 28e2c477070ee52ef974b133ffa4a409c9ac57da..d75fd9ef84608076bbbe675975c7904823cbf763 100644
--- a/ios/chrome/browser/snapshots/snapshot_cache.h
+++ b/ios/chrome/browser/snapshots/snapshot_cache.h
@@ -7,10 +7,7 @@
#import <UIKit/UIKit.h>
-#include "base/mac/objc_property_releaser.h"
-#include "base/mac/scoped_nsobject.h"
#include "base/time/time.h"
-#import "ios/chrome/browser/snapshots/lru_cache.h"
typedef void (^GreyBlock)(UIImage*);
@@ -19,35 +16,7 @@ typedef void (^GreyBlock)(UIImage*);
// scroll offset and zoom level, used to stand in for the UIWebView if it has
// been purged from memory or when quickly switching tabs.
// Persists to disk on a background thread each time a snapshot changes.
-@interface SnapshotCache : NSObject {
- @private
- // Dictionary to hold color snapshots in memory. n.b. Color snapshots are not
- // kept in memory on tablets.
- base::scoped_nsobject<NSMutableDictionary> imageDictionary_;
-
- // Cache to hold color snapshots in memory. n.b. Color snapshots are not
- // kept in memory on tablets. It is used in place of the imageDictionary_ when
- // the LRU cache snapshot experiment is enabled.
- base::scoped_nsobject<LRUCache> lruCache_;
-
- // Temporary dictionary to hold grey snapshots for tablet side swipe. This
- // will be nil before -createGreyCache is called and after -removeGreyCache
- // is called.
- base::scoped_nsobject<NSMutableDictionary> greyImageDictionary_;
- NSSet* pinnedIDs_;
-
- // Session ID of most recent pending grey snapshot request.
- base::scoped_nsobject<NSString> mostRecentGreySessionId_;
- // Block used by pending request for a grey snapshot.
- base::scoped_nsprotocol<GreyBlock> mostRecentGreyBlock_;
-
- // Session ID and correspoinding UIImage for the snapshot that will likely
- // be requested to be saved to disk when the application is backgrounded.
- base::scoped_nsobject<NSString> backgroundingImageSessionId_;
- base::scoped_nsobject<UIImage> backgroundingColorImage_;
-
- base::mac::ObjCPropertyReleaser propertyReleaser_SnapshotCache_;
-}
+@interface SnapshotCache : NSObject
// Track session IDs to not release on low memory and to reload on
// |UIApplicationDidBecomeActiveNotification|.
« no previous file with comments | « no previous file | ios/chrome/browser/snapshots/snapshot_cache.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698