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/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
10 #include "core/dom/ActiveDOMObject.h" | 10 #include "core/dom/ActiveDOMObject.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 void setBodyPassed() { m_bodyPassed = true; } | 43 void setBodyPassed() { m_bodyPassed = true; } |
44 | 44 |
45 // ActiveDOMObject override. | 45 // ActiveDOMObject override. |
46 bool hasPendingActivity() const override; | 46 bool hasPendingActivity() const override; |
47 | 47 |
48 DEFINE_INLINE_VIRTUAL_TRACE() | 48 DEFINE_INLINE_VIRTUAL_TRACE() |
49 { | 49 { |
50 ActiveDOMObject::trace(visitor); | 50 ActiveDOMObject::trace(visitor); |
51 } | 51 } |
52 | 52 |
| 53 void makeOpaque() { m_opaque = true; } |
| 54 bool opaque() const { return m_opaque; } |
| 55 |
53 private: | 56 private: |
54 virtual String mimeType() const = 0; | 57 virtual String mimeType() const = 0; |
55 | 58 |
56 bool m_bodyPassed; | 59 bool m_bodyPassed; |
| 60 bool m_opaque; |
57 }; | 61 }; |
58 | 62 |
59 } // namespace blink | 63 } // namespace blink |
60 | 64 |
61 #endif // Body_h | 65 #endif // Body_h |
OLD | NEW |