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 Response_h | 5 #ifndef Response_h |
6 #define Response_h | 6 #define Response_h |
7 | 7 |
8 #include "bindings/core/v8/Dictionary.h" | 8 #include "bindings/core/v8/Dictionary.h" |
9 #include "bindings/core/v8/ScriptValue.h" | 9 #include "bindings/core/v8/ScriptValue.h" |
10 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 class ExceptionState; | 25 class ExceptionState; |
26 class FetchDataConsumerHandle; | 26 class FetchDataConsumerHandle; |
27 class ResponseInit; | 27 class ResponseInit; |
28 class ScriptState; | 28 class ScriptState; |
29 class WebServiceWorkerResponse; | 29 class WebServiceWorkerResponse; |
30 | 30 |
31 class MODULES_EXPORT Response final : public Body { | 31 class MODULES_EXPORT Response final : public Body { |
32 DEFINE_WRAPPERTYPEINFO(); | 32 DEFINE_WRAPPERTYPEINFO(); |
33 WTF_MAKE_NONCOPYABLE(Response); | 33 WTF_MAKE_NONCOPYABLE(Response); |
34 public: | 34 public: |
35 ~Response() override { } | |
36 | |
37 // From Response.idl: | 35 // From Response.idl: |
38 static Response* create(ScriptState*, ExceptionState&); | 36 static Response* create(ScriptState*, ExceptionState&); |
39 static Response* create(ScriptState*, ScriptValue body, const Dictionary&, E
xceptionState&); | 37 static Response* create(ScriptState*, ScriptValue body, const Dictionary&, E
xceptionState&); |
40 | 38 |
41 static Response* create(ScriptState*, PassOwnPtr<FetchDataConsumerHandle> bo
dyHandle, const String& contentType, const ResponseInit&, ExceptionState&); | 39 static Response* create(ScriptState*, PassOwnPtr<FetchDataConsumerHandle> bo
dyHandle, const String& contentType, const ResponseInit&, ExceptionState&); |
42 static Response* create(ExecutionContext*, FetchResponseData*); | 40 static Response* create(ExecutionContext*, FetchResponseData*); |
43 static Response* create(ScriptState*, const WebServiceWorkerResponse&); | 41 static Response* create(ScriptState*, const WebServiceWorkerResponse&); |
44 | 42 |
45 static Response* createClone(const Response&); | 43 static Response* createClone(const Response&); |
46 | 44 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 Response(ExecutionContext*, FetchResponseData*); | 81 Response(ExecutionContext*, FetchResponseData*); |
84 Response(ExecutionContext*, FetchResponseData*, Headers*); | 82 Response(ExecutionContext*, FetchResponseData*, Headers*); |
85 | 83 |
86 const Member<FetchResponseData> m_response; | 84 const Member<FetchResponseData> m_response; |
87 const Member<Headers> m_headers; | 85 const Member<Headers> m_headers; |
88 }; | 86 }; |
89 | 87 |
90 } // namespace blink | 88 } // namespace blink |
91 | 89 |
92 #endif // Response_h | 90 #endif // Response_h |
OLD | NEW |