#include "CCThread.h"
#include "base/threading/platform_thread.h"
#include <wtf/OwnPtr.h>
#include <wtf/Threading.h>
#ifndef CCThreadImpl_h
#define CCThreadImpl_h
namespace WebKit {
class WebThread;
class CCThreadImpl : public cc::CCThread {
public:
static PassOwnPtr<cc::CCThread> createForCurrentThread();
static PassOwnPtr<cc::CCThread> createForDifferentThread(WebThread*);
virtual ~CCThreadImpl();
virtual void postTask(PassOwnPtr<cc::CCThread::Task>);
virtual void postDelayedTask(PassOwnPtr<cc::CCThread::Task>, long long delayMs);
base::PlatformThreadId threadID() const;
private:
CCThreadImpl(WebThread*, bool currentThread);
WebThread* m_thread;
base::PlatformThreadId m_threadID;
};
}
#endif