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

Unified Diff: third_party/WebKit/public/platform/Platform.h

Issue 1915833002: Introduce Platform::cacheMetadataInCacheStorage() to store V8 code cache in CacheStorage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated vogelheim's comment Created 4 years, 8 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/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index 03e769ebe5dc28609e698a3cb86eeacae44c3dc1..edede541e5a742bf56478df40612d02ccdd9a6f4 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -309,7 +309,10 @@ public:
virtual WebString userAgent() { return WebString(); }
// A suggestion to cache this metadata in association with this URL.
- virtual void cacheMetadata(const WebURL&, int64_t responseTime, const char* data, size_t dataSize) { }
+ virtual void cacheMetadata(const WebURL&, int64_t responseTime, const char* data, size_t dataSize) {}
+
+ // A suggestion to cache this metadata in association with this URL which resource is in CacheStorage.
+ virtual void cacheMetadataInCacheStorage(const WebURL&, int64_t responseTime, const char* data, size_t dataSize, const blink::WebSecurityOrigin& cacheStorageOrigin, const WebString& cacheStorageCacheName) {}
// Returns the decoded data url if url had a supported mimetype and parsing was successful.
virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); }

Powered by Google App Engine
This is Rietveld 408576698