| 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 UnderlyingSource_h | 5 #ifndef UnderlyingSource_h |
| 6 #define UnderlyingSource_h | 6 #define UnderlyingSource_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptValue.h" | 9 #include "bindings/core/v8/ScriptValue.h" |
| 10 #include "core/CoreExport.h" |
| 10 #include "platform/heap/Heap.h" | 11 #include "platform/heap/Heap.h" |
| 11 | 12 |
| 12 namespace blink { | 13 namespace blink { |
| 13 | 14 |
| 14 class ScriptState; | 15 class ScriptState; |
| 15 | 16 |
| 16 class UnderlyingSource : public GarbageCollectedMixin { | 17 class CORE_EXPORT UnderlyingSource : public GarbageCollectedMixin { |
| 17 public: | 18 public: |
| 18 virtual ~UnderlyingSource() { } | 19 virtual ~UnderlyingSource() { } |
| 19 | 20 |
| 20 virtual void pullSource() = 0; | 21 virtual void pullSource() = 0; |
| 21 virtual ScriptPromise cancelSource(ScriptState*, ScriptValue reason) = 0; | 22 virtual ScriptPromise cancelSource(ScriptState*, ScriptValue reason) = 0; |
| 22 DEFINE_INLINE_VIRTUAL_TRACE() { } | 23 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 23 }; | 24 }; |
| 24 | 25 |
| 25 } // namespace blink | 26 } // namespace blink |
| 26 | 27 |
| 27 #endif // UnderlyingSource_h | 28 #endif // UnderlyingSource_h |
| 28 | 29 |
| OLD | NEW |