| 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();
|
|
|