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

Unified Diff: public/platform/WebServiceWorkerRequest.h

Issue 483603003: [ServiceWorker] Add WebServiceWorkerRequest::setBlob() to support body of FetchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated tkent's comment Created 6 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
« no previous file with comments | « Source/platform/exported/WebServiceWorkerRequest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebServiceWorkerRequest.h
diff --git a/public/platform/WebServiceWorkerRequest.h b/public/platform/WebServiceWorkerRequest.h
index 85aef2ef1d7f1de314e40e7f615793e52271020d..8c0b219b24a2c8b18478107029da1e338948e6b6 100644
--- a/public/platform/WebServiceWorkerRequest.h
+++ b/public/platform/WebServiceWorkerRequest.h
@@ -21,6 +21,7 @@
namespace blink {
+class BlobDataHandle;
class WebServiceWorkerRequestPrivate;
// Represents a request of a fetch operation. FetchEvent dispatched by the
@@ -47,6 +48,8 @@ public:
void setHeader(const WebString& key, const WebString& value);
+ void setBlob(const WebString& uuid, long long size);
+
void setReferrer(const WebString&, WebReferrerPolicy);
void setIsReload(bool);
@@ -54,6 +57,7 @@ public:
#if INSIDE_BLINK
const HTTPHeaderMap& headers() const;
+ PassRefPtr<BlobDataHandle> blobDataHandle() const;
const Referrer& referrer() const;
#endif
« no previous file with comments | « Source/platform/exported/WebServiceWorkerRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698