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

Unified Diff: Source/modules/serviceworkers/FetchRequestData.h

Issue 475533005: [ServiceWorker] Add support of FetchEvent's request.body. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
Index: Source/modules/serviceworkers/FetchRequestData.h
diff --git a/Source/modules/serviceworkers/FetchRequestData.h b/Source/modules/serviceworkers/FetchRequestData.h
index 7b202177d0e4425795e05c5301316213acd871cf..98801314b97f33ee97b6559ea7fa3d5e350519d9 100644
--- a/Source/modules/serviceworkers/FetchRequestData.h
+++ b/Source/modules/serviceworkers/FetchRequestData.h
@@ -20,6 +20,7 @@ class WebServiceWorkerRequest;
namespace blink {
+class BlobDataHandle;
class ExecutionContext;
class FetchHeaderList;
struct ResourceLoaderOptions;
@@ -85,6 +86,7 @@ public:
void setResponseTainting(Tainting tainting) { m_responseTainting = tainting; }
Tainting tainting() const { return m_responseTainting; }
FetchHeaderList* headerList() { return m_headerList.get(); }
+ PassRefPtr<BlobDataHandle> blobDataHandle() const { return m_blobDataHandle; }
void trace(Visitor*);
@@ -96,8 +98,8 @@ private:
AtomicString m_method;
KURL m_url;
RefPtrWillBeMember<FetchHeaderList> m_headerList;
+ RefPtr<BlobDataHandle> m_blobDataHandle;
bool m_unsafeRequestFlag;
- // FIXME: Support body.
// FIXME: Support m_skipServiceWorkerFlag;
Context m_context;
RefPtr<SecurityOrigin> m_origin;

Powered by Google App Engine
This is Rietveld 408576698