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

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: rebase 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 93538d0f88ede6ebf5e43c50d0a7066775fd3a67..943e6a52b6e8a2baf93bb7583d8c5a170585b984 100644
--- a/Source/modules/serviceworkers/FetchRequestData.h
+++ b/Source/modules/serviceworkers/FetchRequestData.h
@@ -16,6 +16,7 @@
namespace blink {
+class BlobDataHandle;
class ExecutionContext;
class FetchHeaderList;
struct ResourceLoaderOptions;
@@ -81,6 +82,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*);
@@ -92,8 +94,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