| OLD | NEW |
| 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" |
| 11 #include "modules/ModulesExport.h" | 11 #include "modules/ModulesExport.h" |
| 12 #include "modules/fetch/Body.h" | 12 #include "modules/fetch/Body.h" |
| 13 #include "modules/fetch/FetchRequestData.h" | 13 #include "modules/fetch/FetchRequestData.h" |
| 14 #include "modules/fetch/Headers.h" | 14 #include "modules/fetch/Headers.h" |
| 15 #include "platform/heap/Handle.h" | 15 #include "platform/heap/Handle.h" |
| 16 #include "platform/weborigin/KURL.h" | 16 #include "platform/weborigin/KURL.h" |
| 17 #include "public/platform/WebURLRequest.h" | 17 #include "public/platform/WebURLRequest.h" |
| 18 #include "wtf/RefPtr.h" | 18 #include "wtf/RefPtr.h" |
| 19 #include "wtf/text/WTFString.h" | 19 #include "wtf/text/WTFString.h" |
| 20 | 20 |
| 21 namespace blink { | 21 namespace blink { |
| 22 | 22 |
| 23 class BodyStreamBuffer; | 23 class BodyStreamBuffer2; |
| 24 class RequestInit; | 24 class RequestInit; |
| 25 class WebServiceWorkerRequest; | 25 class WebServiceWorkerRequest; |
| 26 | 26 |
| 27 typedef RequestOrUSVString RequestInfo; | 27 typedef RequestOrUSVString RequestInfo; |
| 28 | 28 |
| 29 class MODULES_EXPORT Request final : public Body { | 29 class MODULES_EXPORT Request final : public Body { |
| 30 DEFINE_WRAPPERTYPEINFO(); | 30 DEFINE_WRAPPERTYPEINFO(); |
| 31 public: | 31 public: |
| 32 ~Request() override { } | 32 ~Request() override { } |
| 33 | 33 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 DECLARE_VIRTUAL_TRACE(); | 65 DECLARE_VIRTUAL_TRACE(); |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 Request(ExecutionContext*, FetchRequestData*); | 68 Request(ExecutionContext*, FetchRequestData*); |
| 69 Request(ExecutionContext*, const WebServiceWorkerRequest&); | 69 Request(ExecutionContext*, const WebServiceWorkerRequest&); |
| 70 Request(ExecutionContext*, FetchRequestData*, Headers*); | 70 Request(ExecutionContext*, FetchRequestData*, Headers*); |
| 71 | 71 |
| 72 static Request* createRequestWithRequestOrString(ScriptState*, Request*, con
st String&, const RequestInit&, ExceptionState&); | 72 static Request* createRequestWithRequestOrString(ScriptState*, Request*, con
st String&, const RequestInit&, ExceptionState&); |
| 73 void clearHeaderList(); | 73 void clearHeaderList(); |
| 74 | 74 |
| 75 PassRefPtr<BlobDataHandle> blobDataHandle() const override; | 75 BodyStreamBuffer2* buffer() const override; |
| 76 BodyStreamBuffer* buffer() const override; | |
| 77 String mimeType() const override; | 76 String mimeType() const override; |
| 78 | 77 |
| 79 const Member<FetchRequestData> m_request; | 78 const Member<FetchRequestData> m_request; |
| 80 const Member<Headers> m_headers; | 79 const Member<Headers> m_headers; |
| 81 }; | 80 }; |
| 82 | 81 |
| 83 } // namespace blink | 82 } // namespace blink |
| 84 | 83 |
| 85 #endif // Request_h | 84 #endif // Request_h |
| OLD | NEW |