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" | |
9 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
10 #include "bindings/core/v8/ScriptValue.h" | 9 #include "bindings/core/v8/ScriptValue.h" |
11 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
12 #include "core/dom/ContextLifecycleObserver.h" | 11 #include "core/dom/ContextLifecycleObserver.h" |
13 #include "modules/ModulesExport.h" | 12 #include "modules/ModulesExport.h" |
| 13 #include "platform/bindings/ActiveScriptWrappable.h" |
14 #include "platform/heap/Handle.h" | 14 #include "platform/heap/Handle.h" |
15 #include "platform/wtf/text/WTFString.h" | 15 #include "platform/wtf/text/WTFString.h" |
16 | 16 |
17 namespace blink { | 17 namespace blink { |
18 | 18 |
19 class BodyStreamBuffer; | 19 class BodyStreamBuffer; |
20 class ExecutionContext; | 20 class ExecutionContext; |
21 class ScriptState; | 21 class ScriptState; |
22 | 22 |
23 // This class represents Body mix-in defined in the fetch spec | 23 // This class represents Body mix-in defined in the fetch spec |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // Body consumption algorithms will reject with a TypeError in a number of | 61 // Body consumption algorithms will reject with a TypeError in a number of |
62 // error conditions. This method wraps those up into one call which returns | 62 // error conditions. This method wraps those up into one call which returns |
63 // an empty ScriptPromise if the consumption may proceed, and a | 63 // an empty ScriptPromise if the consumption may proceed, and a |
64 // ScriptPromise rejected with a TypeError if it ought to be blocked. | 64 // ScriptPromise rejected with a TypeError if it ought to be blocked. |
65 ScriptPromise RejectInvalidConsumption(ScriptState*); | 65 ScriptPromise RejectInvalidConsumption(ScriptState*); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace blink | 68 } // namespace blink |
69 | 69 |
70 #endif // Body_h | 70 #endif // Body_h |
OLD | NEW |