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

Side by Side 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, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 // May return null. 302 // May return null.
303 virtual WebPrescientNetworking* prescientNetworking() { return nullptr; } 303 virtual WebPrescientNetworking* prescientNetworking() { return nullptr; }
304 304
305 // Returns a new WebSocketHandle instance. 305 // Returns a new WebSocketHandle instance.
306 virtual WebSocketHandle* createWebSocketHandle() { return nullptr; } 306 virtual WebSocketHandle* createWebSocketHandle() { return nullptr; }
307 307
308 // Returns the User-Agent string. 308 // Returns the User-Agent string.
309 virtual WebString userAgent() { return WebString(); } 309 virtual WebString userAgent() { return WebString(); }
310 310
311 // A suggestion to cache this metadata in association with this URL. 311 // A suggestion to cache this metadata in association with this URL.
312 virtual void cacheMetadata(const WebURL&, int64_t responseTime, const char* data, size_t dataSize) { } 312 virtual void cacheMetadata(const WebURL&, int64_t responseTime, const char* data, size_t dataSize) {}
313
314 // A suggestion to cache this metadata in association with this URL which re source is in CacheStorage.
315 virtual void cacheMetadataInCacheStorage(const WebURL&, int64_t responseTime , const char* data, size_t dataSize, const blink::WebSecurityOrigin& cacheStorag eOrigin, const WebString& cacheStorageCacheName) {}
313 316
314 // Returns the decoded data url if url had a supported mimetype and parsing was successful. 317 // Returns the decoded data url if url had a supported mimetype and parsing was successful.
315 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); } 318 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); }
316 319
317 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); } 320 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); }
318 321
319 // Returns true and stores the position of the end of the headers to |*end| 322 // Returns true and stores the position of the end of the headers to |*end|
320 // if the headers part ends in |bytes[0..size]|. Returns false otherwise. 323 // if the headers part ends in |bytes[0..size]|. Returns false otherwise.
321 virtual bool parseMultipartHeadersFromBody(const char* bytes, size_t /* size */, WebURLResponse*, size_t* end) const { return false; } 324 virtual bool parseMultipartHeadersFromBody(const char* bytes, size_t /* size */, WebURLResponse*, size_t* end) const { return false; }
322 325
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 protected: 625 protected:
623 Platform(); 626 Platform();
624 virtual ~Platform() { } 627 virtual ~Platform() { }
625 628
626 WebThread* m_mainThread; 629 WebThread* m_mainThread;
627 }; 630 };
628 631
629 } // namespace blink 632 } // namespace blink
630 633
631 #endif 634 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698