Chromium Code Reviews| Index: Source/bindings/dart/DartCustomElementBinding.h |
| diff --git a/Source/modules/crypto/WorkerCrypto.h b/Source/bindings/dart/DartCustomElementBinding.h |
| similarity index 78% |
| copy from Source/modules/crypto/WorkerCrypto.h |
| copy to Source/bindings/dart/DartCustomElementBinding.h |
| index 2b72aba570ab975dac5e0c1c15bfd36d840c769e..34cba781f288cb8250e1a98c76bf5bb428b927f9 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_Handle customType() { return Dart_HandleFromPersistent(m_customType); } |
|
siva
2013/09/20 20:57:37
I would really like to avoid such implicit convers
blois
2013/09/20 22:18:03
Done.
|
| private: |
| - WorkerCrypto(); |
| + DartCustomElementBinding(Dart_Handle customType); |
| + Dart_PersistentHandle m_customType; |
| }; |
| } |
| -#endif |
| +#endif // CustomElementBinding_h |