Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Unified Diff: Source/bindings/core/dart/DartPersistentValue.h

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « Source/bindings/core/dart/DartPageDebuggerAgent.cpp ('k') | Source/bindings/core/dart/DartPersistentValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698