| Index: Source/platform/WebThreadOwnPtr.h
|
| diff --git a/Source/platform/WebThreadOwnPtr.h b/Source/platform/WebThreadOwnPtr.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d25c5935fa1a70a656ee902a0ba3bedf563400fe
|
| --- /dev/null
|
| +++ b/Source/platform/WebThreadOwnPtr.h
|
| @@ -0,0 +1,21 @@
|
| +#ifndef WEBTHREADOWNPTR
|
| +#define WEBTHREADOWNPTR
|
| +
|
| +#include "WebThreadPtr.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class WebThreadOwnPtr : public WebThreadPtr {
|
| + public:
|
| + WebThreadOwnPtr(WebThread* t) : m_ptr(adoptPtr(t)) {}
|
| + virtual WebThread& operator*() const { return *m_ptr.get(); }
|
| + virtual WebThread* operator->() const { return m_ptr.get(); }
|
| + virtual void clear() { m_ptr.clear(); }
|
| +
|
| + private:
|
| + OwnPtr<WebThread> m_ptr;
|
| +};
|
| +
|
| +}
|
| +
|
| +#endif /* ifndef WEBTHREADOWNPTR */
|
|
|