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" |
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/BodyStreamBuffer.h" | 13 #include "modules/fetch/BodyStreamBuffer.h" |
14 #include "modules/fetch/FetchResponseData.h" | 14 #include "modules/fetch/FetchResponseData.h" |
15 #include "modules/fetch/Headers.h" | 15 #include "modules/fetch/Headers.h" |
16 #include "platform/blob/BlobData.h" | 16 #include "platform/blob/BlobData.h" |
17 #include "platform/heap/Handle.h" | 17 #include "platform/heap/Handle.h" |
18 | 18 |
19 namespace blink { | 19 namespace blink { |
20 | 20 |
21 class Blob; | 21 class Blob; |
22 class DOMArrayBuffer; | |
23 class ExceptionState; | 22 class ExceptionState; |
24 class FetchDataConsumerHandle; | |
25 class ResponseInit; | 23 class ResponseInit; |
26 class ScriptState; | 24 class ScriptState; |
27 class WebServiceWorkerResponse; | 25 class WebServiceWorkerResponse; |
28 | 26 |
29 class MODULES_EXPORT Response final : public Body { | 27 class MODULES_EXPORT Response final : public Body { |
30 DEFINE_WRAPPERTYPEINFO(); | 28 DEFINE_WRAPPERTYPEINFO(); |
31 WTF_MAKE_NONCOPYABLE(Response); | 29 WTF_MAKE_NONCOPYABLE(Response); |
32 | 30 |
33 public: | 31 public: |
34 // These "create" function which takes a ScriptState* must be called with | 32 // These "create" function which takes a ScriptState* must be called with |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 void installBody(); | 105 void installBody(); |
108 void refreshBody(ScriptState*); | 106 void refreshBody(ScriptState*); |
109 | 107 |
110 const Member<FetchResponseData> m_response; | 108 const Member<FetchResponseData> m_response; |
111 const Member<Headers> m_headers; | 109 const Member<Headers> m_headers; |
112 }; | 110 }; |
113 | 111 |
114 } // namespace blink | 112 } // namespace blink |
115 | 113 |
116 #endif // Response_h | 114 #endif // Response_h |
OLD | NEW |