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

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

Issue 2249373002: Make Resource MemoryCoordinatorClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment 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/CachedMetadataHandler.h
diff --git a/third_party/WebKit/Source/core/fetch/CachedMetadataHandler.h b/third_party/WebKit/Source/core/fetch/CachedMetadataHandler.h
index d347d98cf41874c595db4b3903ec0d6a1ed988ce..bc616790bf4d7cc2c75c7341e7159b30739e240c 100644
--- a/third_party/WebKit/Source/core/fetch/CachedMetadataHandler.h
+++ b/third_party/WebKit/Source/core/fetch/CachedMetadataHandler.h
@@ -28,7 +28,8 @@ public:
// Reset existing metadata, to allow setting new data.
virtual void clearCachedMetadata(CacheType = CacheLocally) = 0;
// Returns cached metadata of the given type associated with this resource.
- virtual CachedMetadata* cachedMetadata(unsigned dataTypeID) const = 0;
+ // This cached metadata can be pruned at any time.
+ virtual PassRefPtr<CachedMetadata> cachedMetadata(unsigned dataTypeID) const = 0;
// Returns the encoding to which the cache is specific.
virtual String encoding() const = 0;

Powered by Google App Engine
This is Rietveld 408576698