| 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 Body_h | 5 #ifndef Body_h |
| 6 #define Body_h | 6 #define Body_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ActiveScriptWrappable.h" | 8 #include "bindings/core/v8/ActiveScriptWrappable.h" |
| 9 #include "bindings/core/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.h" |
| 10 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // spec only Response has it and Request has a byte stream defined in the | 27 // spec only Response has it and Request has a byte stream defined in the |
| 28 // Encoding spec. The spec should be fixed shortly to be aligned with this | 28 // Encoding spec. The spec should be fixed shortly to be aligned with this |
| 29 // implementation. | 29 // implementation. |
| 30 class MODULES_EXPORT Body | 30 class MODULES_EXPORT Body |
| 31 : public GarbageCollectedFinalized<Body> | 31 : public GarbageCollectedFinalized<Body> |
| 32 , public ScriptWrappable | 32 , public ScriptWrappable |
| 33 , public ActiveScriptWrappable | 33 , public ActiveScriptWrappable |
| 34 , public ActiveDOMObject { | 34 , public ActiveDOMObject { |
| 35 WTF_MAKE_NONCOPYABLE(Body); | 35 WTF_MAKE_NONCOPYABLE(Body); |
| 36 DEFINE_WRAPPERTYPEINFO(); | 36 DEFINE_WRAPPERTYPEINFO(); |
| 37 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Body); | 37 USING_GARBAGE_COLLECTED_MIXIN(Body); |
| 38 public: | 38 public: |
| 39 explicit Body(ExecutionContext*); | 39 explicit Body(ExecutionContext*); |
| 40 ~Body() override { } | 40 ~Body() override { } |
| 41 | 41 |
| 42 ScriptPromise arrayBuffer(ScriptState*); | 42 ScriptPromise arrayBuffer(ScriptState*); |
| 43 ScriptPromise blob(ScriptState*); | 43 ScriptPromise blob(ScriptState*); |
| 44 ScriptPromise formData(ScriptState*); | 44 ScriptPromise formData(ScriptState*); |
| 45 ScriptPromise json(ScriptState*); | 45 ScriptPromise json(ScriptState*); |
| 46 ScriptPromise text(ScriptState*); | 46 ScriptPromise text(ScriptState*); |
| 47 ReadableByteStream* bodyWithUseCounter(); | 47 ReadableByteStream* bodyWithUseCounter(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 72 // an empty ScriptPromise if the consumption may proceed, and a | 72 // an empty ScriptPromise if the consumption may proceed, and a |
| 73 // ScriptPromise rejected with a TypeError if it ought to be blocked. | 73 // ScriptPromise rejected with a TypeError if it ought to be blocked. |
| 74 ScriptPromise rejectInvalidConsumption(ScriptState*); | 74 ScriptPromise rejectInvalidConsumption(ScriptState*); |
| 75 | 75 |
| 76 bool m_opaque; | 76 bool m_opaque; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| 80 | 80 |
| 81 #endif // Body_h | 81 #endif // Body_h |
| OLD | NEW |