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

Unified Diff: Source/core/fetch/Resource.h

Issue 164333008: Make MemoryCache's LRUList manipulation private (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months 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 | « Source/core/fetch/MemoryCacheTest.cpp ('k') | Source/core/fetch/Resource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/Resource.h
diff --git a/Source/core/fetch/Resource.h b/Source/core/fetch/Resource.h
index b6c970de1e4a30ceb567659a5410d61d94145616..c2b2b616276c82438b6515cc11e5c4a2b3b3cf9a 100644
--- a/Source/core/fetch/Resource.h
+++ b/Source/core/fetch/Resource.h
@@ -159,9 +159,6 @@ public:
|| type() == Raw;
}
- void updateForAccess();
- unsigned accessCount() const { return m_accessCount; }
-
// Computes the status of an object after loading.
// Updates the expire date on the cache entry file
void finish(double finishTime = 0.0);
@@ -170,13 +167,6 @@ public:
bool passesAccessControlCheck(SecurityOrigin*);
bool passesAccessControlCheck(SecurityOrigin*, String& errorDescription);
- // Called by the cache if the object has been removed from the cache
- // while still being referenced. This means the object should delete itself
- // if the number of clients observing it ever drops to 0.
- // The resource can be brought back to cache after successful revalidation.
- void setInCache(bool inCache) { m_inCache = inCache; }
- bool inCache() const { return m_inCache; }
-
void setCacheLiveResourcePriority(CacheLiveResourcePriority);
unsigned cacheLiveResourcePriority() const { return m_cacheLiveResourcePriority; }
@@ -357,7 +347,6 @@ private:
size_t m_encodedSize;
size_t m_decodedSize;
- unsigned m_accessCount;
unsigned m_handleCount;
unsigned m_preloadCount;
unsigned m_protectorCount;
@@ -366,7 +355,6 @@ private:
unsigned m_cacheLiveResourcePriority : 2; // CacheLiveResourcePriority
unsigned m_requestedFromNetworkingLayer : 1;
- unsigned m_inCache : 1;
unsigned m_loading : 1;
unsigned m_switchingClientsToRevalidatedResource : 1;
« no previous file with comments | « Source/core/fetch/MemoryCacheTest.cpp ('k') | Source/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698