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

Unified Diff: Source/modules/serviceworkers/Request.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
« no previous file with comments | « Source/modules/serviceworkers/FetchRequestData.cpp ('k') | Source/modules/serviceworkers/Request.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/Request.h
diff --git a/Source/modules/serviceworkers/Request.h b/Source/modules/serviceworkers/Request.h
index e4a99c529bb38aa2628eb410e0510fb0bc09d4f6..e1aab04b15679396157634d9417fd3699f3a379e 100644
--- a/Source/modules/serviceworkers/Request.h
+++ b/Source/modules/serviceworkers/Request.h
@@ -7,6 +7,7 @@
#include "bindings/core/v8/Dictionary.h"
#include "bindings/core/v8/ScriptWrappable.h"
+#include "modules/serviceworkers/FetchBodyStream.h"
#include "modules/serviceworkers/FetchRequestData.h"
#include "modules/serviceworkers/Headers.h"
#include "platform/heap/Handle.h"
@@ -40,7 +41,7 @@ public:
String method() const;
String url() const;
PassRefPtrWillBeRawPtr<Headers> headers() const { return m_headers; }
- // FIXME: Support body.
+ PassRefPtrWillBeRawPtr<FetchBodyStream> body(ExecutionContext*);
String referrer() const;
String mode() const;
String credentials() const;
@@ -53,6 +54,7 @@ private:
RefPtrWillBeMember<FetchRequestData> m_request;
RefPtrWillBeMember<Headers> m_headers;
+ RefPtrWillBeMember<FetchBodyStream> m_fetchBodyStream;
};
} // namespace blink
« no previous file with comments | « Source/modules/serviceworkers/FetchRequestData.cpp ('k') | Source/modules/serviceworkers/Request.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698