| OLD | NEW |
| (Empty) |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "CCThread.h" | |
| 6 #include <wtf/OwnPtr.h> | |
| 7 #include <wtf/Threading.h> | |
| 8 | |
| 9 #ifndef CCThreadImpl_h | |
| 10 #define CCThreadImpl_h | |
| 11 | |
| 12 namespace WebKit { | |
| 13 | |
| 14 class WebThread; | |
| 15 | |
| 16 // Implements CCThread in terms of WebThread. | |
| 17 class CCThreadImpl : public WebCore::CCThread { | |
| 18 public: | |
| 19 static PassOwnPtr<WebCore::CCThread> create(WebThread*); | |
| 20 virtual ~CCThreadImpl(); | |
| 21 virtual void postTask(PassOwnPtr<WebCore::CCThread::Task>); | |
| 22 virtual void postDelayedTask(PassOwnPtr<WebCore::CCThread::Task>, long long
delayMs); | |
| 23 WTF::ThreadIdentifier threadID() const; | |
| 24 | |
| 25 private: | |
| 26 explicit CCThreadImpl(WebThread*); | |
| 27 | |
| 28 WebThread* m_thread; | |
| 29 WTF::ThreadIdentifier m_threadID; | |
| 30 }; | |
| 31 | |
| 32 } // namespace WebKit | |
| 33 | |
| 34 #endif | |
| OLD | NEW |