| 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" | |
| 11 #include "modules/fetch/Body.h" | 10 #include "modules/fetch/Body.h" |
| 12 #include "modules/fetch/FetchRequestData.h" | 11 #include "modules/fetch/FetchRequestData.h" |
| 13 #include "modules/fetch/Headers.h" | 12 #include "modules/fetch/Headers.h" |
| 14 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
| 15 #include "platform/weborigin/KURL.h" | 14 #include "platform/weborigin/KURL.h" |
| 16 #include "public/platform/WebURLRequest.h" | 15 #include "public/platform/WebURLRequest.h" |
| 17 #include "wtf/RefPtr.h" | 16 #include "wtf/RefPtr.h" |
| 18 #include "wtf/text/WTFString.h" | 17 #include "wtf/text/WTFString.h" |
| 19 | 18 |
| 20 namespace blink { | 19 namespace blink { |
| 21 | 20 |
| 22 class BodyStreamBuffer; | 21 class BodyStreamBuffer; |
| 23 class RequestInit; | 22 class RequestInit; |
| 23 class RequestOrUSVString; |
| 24 class WebServiceWorkerRequest; | 24 class WebServiceWorkerRequest; |
| 25 | 25 |
| 26 typedef RequestOrUSVString RequestInfo; | 26 typedef RequestOrUSVString RequestInfo; |
| 27 | 27 |
| 28 class Request final : public Body { | 28 class Request final : public Body { |
| 29 DEFINE_WRAPPERTYPEINFO(); | 29 DEFINE_WRAPPERTYPEINFO(); |
| 30 public: | 30 public: |
| 31 ~Request() override { } | 31 ~Request() override { } |
| 32 | 32 |
| 33 // From Request.idl: | 33 // From Request.idl: |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 BodyStreamBuffer* buffer() const override; | 75 BodyStreamBuffer* buffer() const override; |
| 76 String contentTypeForBuffer() const override; | 76 String contentTypeForBuffer() const override; |
| 77 | 77 |
| 78 const Member<FetchRequestData> m_request; | 78 const Member<FetchRequestData> m_request; |
| 79 const Member<Headers> m_headers; | 79 const Member<Headers> m_headers; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace blink | 82 } // namespace blink |
| 83 | 83 |
| 84 #endif // Request_h | 84 #endif // Request_h |
| OLD | NEW |