| Index: Source/bindings/dart/DartCustomElementBinding.h
|
| diff --git a/Source/modules/crypto/WorkerCrypto.h b/Source/bindings/dart/DartCustomElementBinding.h
|
| similarity index 79%
|
| copy from Source/modules/crypto/WorkerCrypto.h
|
| copy to Source/bindings/dart/DartCustomElementBinding.h
|
| index 2b72aba570ab975dac5e0c1c15bfd36d840c769e..98e702f3c8d142c90d4b92866b942b5529ef58fe 100644
|
| --- a/Source/modules/crypto/WorkerCrypto.h
|
| +++ b/Source/bindings/dart/DartCustomElementBinding.h
|
| @@ -28,24 +28,27 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef WorkerCrypto_h
|
| -#define WorkerCrypto_h
|
| +#ifndef DartCustomElementBinding_h
|
| +#define DartCustomElementBinding_h
|
|
|
| -#include "bindings/v8/ScriptWrappable.h"
|
| -#include "wtf/Forward.h"
|
| +#include "wtf/PassOwnPtr.h"
|
| #include "wtf/PassRefPtr.h"
|
| -#include "wtf/RefCounted.h"
|
| +
|
| +#include <dart_api.h>
|
|
|
| namespace WebCore {
|
|
|
| -class WorkerCrypto : public ScriptWrappable, public RefCounted<WorkerCrypto> {
|
| +class DartCustomElementBinding {
|
| public:
|
| - static PassRefPtr<WorkerCrypto> create() { return adoptRef(new WorkerCrypto()); }
|
| + static PassOwnPtr<DartCustomElementBinding> create(Dart_Handle customType);
|
| +
|
| + Dart_PersistentHandle customType() { return m_customType; }
|
|
|
| private:
|
| - WorkerCrypto();
|
| + DartCustomElementBinding(Dart_Handle customType);
|
| + Dart_PersistentHandle m_customType;
|
| };
|
|
|
| }
|
|
|
| -#endif
|
| +#endif // CustomElementBinding_h
|
|
|