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" |
(...skipping 13 matching lines...) Expand all Loading... |
24 class EncodedFormData; | 24 class EncodedFormData; |
25 class RequestInit; | 25 class RequestInit; |
26 class WebServiceWorkerRequest; | 26 class WebServiceWorkerRequest; |
27 | 27 |
28 using RequestInfo = RequestOrUSVString; | 28 using RequestInfo = RequestOrUSVString; |
29 | 29 |
30 class MODULES_EXPORT Request final : public Body { | 30 class MODULES_EXPORT Request final : public Body { |
31 DEFINE_WRAPPERTYPEINFO(); | 31 DEFINE_WRAPPERTYPEINFO(); |
32 WTF_MAKE_NONCOPYABLE(Request); | 32 WTF_MAKE_NONCOPYABLE(Request); |
33 public: | 33 public: |
34 ~Request() override {} | |
35 | |
36 // From Request.idl: | 34 // From Request.idl: |
37 static Request* create(ScriptState*, const RequestInfo&, const Dictionary&,
ExceptionState&); | 35 static Request* create(ScriptState*, const RequestInfo&, const Dictionary&,
ExceptionState&); |
38 | 36 |
39 static Request* create(ScriptState*, const String&, ExceptionState&); | 37 static Request* create(ScriptState*, const String&, ExceptionState&); |
40 static Request* create(ScriptState*, const String&, const Dictionary&, Excep
tionState&); | 38 static Request* create(ScriptState*, const String&, const Dictionary&, Excep
tionState&); |
41 static Request* create(ScriptState*, Request*, ExceptionState&); | 39 static Request* create(ScriptState*, Request*, ExceptionState&); |
42 static Request* create(ScriptState*, Request*, const Dictionary&, ExceptionS
tate&); | 40 static Request* create(ScriptState*, Request*, const Dictionary&, ExceptionS
tate&); |
43 static Request* create(ScriptState*, FetchRequestData*); | 41 static Request* create(ScriptState*, FetchRequestData*); |
44 static Request* create(ScriptState*, const WebServiceWorkerRequest&); | 42 static Request* create(ScriptState*, const WebServiceWorkerRequest&); |
45 | 43 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 75 |
78 String mimeType() const override; | 76 String mimeType() const override; |
79 | 77 |
80 const Member<FetchRequestData> m_request; | 78 const Member<FetchRequestData> m_request; |
81 const Member<Headers> m_headers; | 79 const Member<Headers> m_headers; |
82 }; | 80 }; |
83 | 81 |
84 } // namespace blink | 82 } // namespace blink |
85 | 83 |
86 #endif // Request_h | 84 #endif // Request_h |
OLD | NEW |