| Index: sky/engine/bindings-dart/core/dart/ThreadSafeDartIsolateWrapper.h
|
| diff --git a/LICENSE b/sky/engine/bindings-dart/core/dart/ThreadSafeDartIsolateWrapper.h
|
| similarity index 69%
|
| copy from LICENSE
|
| copy to sky/engine/bindings-dart/core/dart/ThreadSafeDartIsolateWrapper.h
|
| index 972bb2edb099e58b6a1939fa57f8e74391159c0c..5ddc65fb55f18841a4b48b3a66d3106d280adba3 100644
|
| --- a/LICENSE
|
| +++ b/sky/engine/bindings-dart/core/dart/ThreadSafeDartIsolateWrapper.h
|
| @@ -1,4 +1,5 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Copyright 2012, Google Inc.
|
| +// All rights reserved.
|
| //
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| @@ -25,3 +26,27 @@
|
| // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| +
|
| +#ifndef ThreadSafeDartIsolateWrapper_h
|
| +#define ThreadSafeDartIsolateWrapper_h
|
| +
|
| +#include "bindings/core/dart/DartIsolateDestructionObserver.h"
|
| +
|
| +#include <dart_api.h>
|
| +#include <wtf/RefPtr.h>
|
| +#include <wtf/ThreadSafeRefCounted.h>
|
| +
|
| +namespace blink {
|
| +
|
| +class ThreadSafeDartIsolateWrapper : public ThreadSafeRefCounted<ThreadSafeDartIsolateWrapper>, public DartIsolateDestructionObserver {
|
| + WTF_MAKE_NONCOPYABLE(ThreadSafeDartIsolateWrapper);
|
| +public:
|
| + static PassRefPtr<ThreadSafeDartIsolateWrapper> create();
|
| +
|
| +private:
|
| + ThreadSafeDartIsolateWrapper() { }
|
| +};
|
| +
|
| +}
|
| +
|
| +#endif // ThreadSafeDartIsolateWrapper_h
|
|
|