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

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

Issue 2253853002: Remove SharedBuffer::unlock() and keep Resource's SharedBuffer always locked (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use hasClientsOrObservers() for live_size Created 4 years, 4 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
Index: third_party/WebKit/Source/core/fetch/Resource.h
diff --git a/third_party/WebKit/Source/core/fetch/Resource.h b/third_party/WebKit/Source/core/fetch/Resource.h
index 471249d76b8b0c592d62abc1705f79024817585b..df41fc68d6ff9108604e8d147aabc47b47f05e63 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.h
+++ b/third_party/WebKit/Source/core/fetch/Resource.h
@@ -221,9 +221,6 @@ public:
double freshnessLifetime();
double stalenessLifetime();
- bool isPurgeable() const;
- bool lock();
-
void setCacheIdentifier(const String& cacheIdentifier) { m_cacheIdentifier = cacheIdentifier; }
String cacheIdentifier() const { return m_cacheIdentifier; }
@@ -280,7 +277,6 @@ protected:
};
const Vector<RedirectPair>& redirectChain() const { return m_redirectChain; }
- virtual bool isSafeToUnlock() const { return false; }
virtual void destroyDecodedDataIfPossible() { }
virtual void markClientsAndObserversFinished();
@@ -309,8 +305,6 @@ private:
size_t calculateOverheadSize() const;
- bool unlock();
-
String reasonNotDeletable() const;
Member<CachedMetadataHandlerImpl> m_cacheHandler;
« no previous file with comments | « third_party/WebKit/Source/core/fetch/MemoryCache.cpp ('k') | third_party/WebKit/Source/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698