| Index: Source/bindings/core/dart/DartPersistentValue.h
|
| diff --git a/Source/modules/filesystem/HTMLInputElementFileSystem.h b/Source/bindings/core/dart/DartPersistentValue.h
|
| similarity index 74%
|
| copy from Source/modules/filesystem/HTMLInputElementFileSystem.h
|
| copy to Source/bindings/core/dart/DartPersistentValue.h
|
| index 526f67f2478abc9876818db8b5a6345371c9bfdc..db92b4e5a71663ec38855c178ef6964d52139f7c 100644
|
| --- a/Source/modules/filesystem/HTMLInputElementFileSystem.h
|
| +++ b/Source/bindings/core/dart/DartPersistentValue.h
|
| @@ -28,25 +28,29 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef HTMLInputElementFileSystem_h
|
| -#define HTMLInputElementFileSystem_h
|
| +#ifndef DartPersistentValue_h
|
| +#define DartPersistentValue_h
|
|
|
| -#include "modules/filesystem/EntriesCallback.h"
|
| +#include "bindings/core/dart/DartIsolateDestructionObserver.h"
|
| +#include "wtf/Noncopyable.h"
|
| +#include "wtf/RefPtr.h"
|
| +#include <dart_api.h>
|
|
|
| namespace blink {
|
|
|
| -class HTMLInputElement;
|
| -class ExecutionContext;
|
| -
|
| -class HTMLInputElementFileSystem {
|
| +class DartPersistentValue : public DartIsolateDestructionObserver {
|
| + WTF_MAKE_NONCOPYABLE(DartPersistentValue);
|
| public:
|
| - static EntryHeapVector webkitEntries(ExecutionContext*, HTMLInputElement&);
|
| + explicit DartPersistentValue(Dart_Handle value);
|
| + ~DartPersistentValue();
|
| +
|
| + Dart_PersistentHandle value() const { return m_value; }
|
| + void clear();
|
|
|
| private:
|
| - HTMLInputElementFileSystem();
|
| - ~HTMLInputElementFileSystem();
|
| + Dart_PersistentHandle m_value;
|
| };
|
|
|
| -} // namespace blink
|
| +}
|
|
|
| -#endif // HTMLInputElementFileSystem_h
|
| +#endif // DartPersistentValue_h
|
|
|