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

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

Issue 786893004: [ServiceWorker] Use BodyStreamBuffer as the body data of the Response object. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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/FetchResponseData.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 54089f11be6e85a5d13498c10eff4fd3c079381e..e2642891fd937dfce96cc5ae7ead1f2499ddfd60 100644
--- a/Source/modules/serviceworkers/Request.h
+++ b/Source/modules/serviceworkers/Request.h
@@ -19,6 +19,7 @@
namespace blink {
+class BodyStreamBuffer;
class RequestInit;
class WebServiceWorkerRequest;
@@ -27,7 +28,7 @@ typedef RequestOrUSVString RequestInfo;
class Request final : public Body {
DEFINE_WRAPPERTYPEINFO();
public:
- virtual ~Request() { }
+ ~Request() override { }
// From Request.idl:
static Request* create(ExecutionContext*, const RequestInfo&, const Dictionary&, ExceptionState&);
@@ -60,7 +61,7 @@ public:
void setBodyBlobHandle(PassRefPtr<BlobDataHandle>);
bool hasBody() const { return m_request->blobDataHandle(); }
- virtual void trace(Visitor*) override;
+ void trace(Visitor*) override;
private:
explicit Request(const Request&);
@@ -70,7 +71,9 @@ private:
static Request* createRequestWithRequestOrString(ExecutionContext*, Request*, const String&, const RequestInit&, ExceptionState&);
void clearHeaderList();
- virtual PassRefPtr<BlobDataHandle> blobDataHandle() override;
+ PassRefPtr<BlobDataHandle> blobDataHandle() const override;
+ BodyStreamBuffer* buffer() const override;
+ String contentTypeForBuffer() const override;
const Member<FetchRequestData> m_request;
const Member<Headers> m_headers;
« no previous file with comments | « Source/modules/serviceworkers/FetchResponseData.cpp ('k') | Source/modules/serviceworkers/Request.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698