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

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

Issue 528013002: Restore in-memory parser cache for V8 compile. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: bool -> enum. Created 6 years, 3 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: Source/core/fetch/Resource.h
diff --git a/Source/core/fetch/Resource.h b/Source/core/fetch/Resource.h
index 157443890a34ee531010746355a4e7689b130fc3..5434fba7a36338411102497995c75d0b60024c4f 100644
--- a/Source/core/fetch/Resource.h
+++ b/Source/core/fetch/Resource.h
@@ -82,6 +82,11 @@ public:
DecodeError
};
+ enum MetadataCacheType {
+ SendToPlatform, // send cache data to blink::Platform::cacheMetadata
+ CacheLocally // cache only in Resource's member variables
+ };
+
Resource(const ResourceRequest&, Type);
#if ENABLE(OILPAN)
virtual ~Resource();
@@ -195,7 +200,7 @@ public:
// Caches the given metadata in association with this resource and suggests
// that the platform persist it. The dataTypeID is a pseudo-randomly chosen
// identifier that is used to distinguish data generated by the caller.
- void setCachedMetadata(unsigned dataTypeID, const char*, size_t);
+ void setCachedMetadata(unsigned dataTypeID, const char*, size_t, MetadataCacheType = SendToPlatform);
// Reset existing metadata, to allow setting new data.
void clearCachedMetadata();

Powered by Google App Engine
This is Rietveld 408576698