Chromium Code Reviews| 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/ScriptValue.h" | 10 #include "bindings/core/v8/ScriptValue.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 | 55 |
| 56 DEFINE_INLINE_VIRTUAL_TRACE() { ContextClient::trace(visitor); } | 56 DEFINE_INLINE_VIRTUAL_TRACE() { ContextClient::trace(visitor); } |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 virtual String mimeType() const = 0; | 59 virtual String mimeType() const = 0; |
| 60 | 60 |
| 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 public: | |
|
Mircea Trofin
2017/03/28 02:05:56
Probably safe to ignore for now.
| |
| 65 ScriptPromise rejectInvalidConsumption(ScriptState*); | 66 ScriptPromise rejectInvalidConsumption(ScriptState*); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace blink | 69 } // namespace blink |
| 69 | 70 |
| 70 #endif // Body_h | 71 #endif // Body_h |
| OLD | NEW |