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 77% |
| copy from Source/modules/crypto/WorkerCrypto.h |
| copy to Source/bindings/dart/DartCustomElementBinding.h |
| index 2b72aba570ab975dac5e0c1c15bfd36d840c769e..9e09e2db5d0847d3d1c6963c52681b4b64120875 100644 |
| --- a/Source/modules/crypto/WorkerCrypto.h |
| +++ b/Source/bindings/dart/DartCustomElementBinding.h |
| @@ -28,24 +28,29 @@ |
| * 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); |
| + |
| + ~DartCustomElementBinding() { } |
|
vsm
2013/09/19 23:12:26
Don't think you need an explicit destructor here.
blois
2013/09/20 00:10:25
Done.
|
| + |
| + Dart_Handle customType() { return Dart_HandleFromPersistent(m_customType); } |
| private: |
| - WorkerCrypto(); |
| + DartCustomElementBinding(Dart_Handle customType); |
| + Dart_PersistentHandle m_customType; |
| }; |
| } |
| -#endif |
| +#endif // CustomElementBinding_h |