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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/Request.h

Issue 1506023003: Response construction with a ReadableStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef Request_h 5 #ifndef Request_h
6 #define Request_h 6 #define Request_h
7 7
8 #include "bindings/core/v8/Dictionary.h" 8 #include "bindings/core/v8/Dictionary.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "bindings/modules/v8/UnionTypesModules.h" 10 #include "bindings/modules/v8/UnionTypesModules.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // From Request.idl: 55 // From Request.idl:
56 Request* clone(ExceptionState&); 56 Request* clone(ExceptionState&);
57 57
58 FetchRequestData* passRequestData(); 58 FetchRequestData* passRequestData();
59 void populateWebServiceWorkerRequest(WebServiceWorkerRequest&) const; 59 void populateWebServiceWorkerRequest(WebServiceWorkerRequest&) const;
60 bool hasBody() const; 60 bool hasBody() const;
61 BodyStreamBuffer* bodyBuffer() override { return m_request->buffer(); } 61 BodyStreamBuffer* bodyBuffer() override { return m_request->buffer(); }
62 const BodyStreamBuffer* bodyBuffer() const override { return m_request->buff er(); } 62 const BodyStreamBuffer* bodyBuffer() const override { return m_request->buff er(); }
63 63
64 void stop() override;
65
64 DECLARE_VIRTUAL_TRACE(); 66 DECLARE_VIRTUAL_TRACE();
65 67
66 private: 68 private:
67 Request(ExecutionContext*, FetchRequestData*); 69 Request(ExecutionContext*, FetchRequestData*);
68 Request(ExecutionContext*, const WebServiceWorkerRequest&); 70 Request(ExecutionContext*, const WebServiceWorkerRequest&);
69 Request(ExecutionContext*, FetchRequestData*, Headers*); 71 Request(ExecutionContext*, FetchRequestData*, Headers*);
70 72
71 const FetchRequestData* request() const { return m_request; } 73 const FetchRequestData* request() const { return m_request; }
72 static Request* createRequestWithRequestOrString(ScriptState*, Request*, con st String&, RequestInit&, ExceptionState&); 74 static Request* createRequestWithRequestOrString(ScriptState*, Request*, con st String&, RequestInit&, ExceptionState&);
73 75
74 String mimeType() const override; 76 String mimeType() const override;
75 77
76 const Member<FetchRequestData> m_request; 78 const Member<FetchRequestData> m_request;
77 const Member<Headers> m_headers; 79 const Member<Headers> m_headers;
78 }; 80 };
79 81
80 } // namespace blink 82 } // namespace blink
81 83
82 #endif // Request_h 84 #endif // Request_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698