OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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 #ifndef WEBKIT_GLUE_WEBTHREAD_IMPL_H_ |
| 5 #define WEBKIT_GLUE_WEBTHREAD_IMPL_H_ |
| 6 |
| 7 #include "base/threading/thread.h" |
| 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebThread.h" |
| 9 |
| 10 namespace webkit_glue { |
| 11 |
| 12 class WebThreadImpl : public WebKit::WebThread { |
| 13 public: |
| 14 WebThreadImpl(const char* name); |
| 15 virtual ~WebThreadImpl(); |
| 16 |
| 17 virtual void postTask(Task* task) OVERRIDE; |
| 18 virtual void postDelayedTask(Task* task, int64 delay_ms) OVERRIDE; |
| 19 |
| 20 protected: |
| 21 scoped_ptr<base::Thread> thread_; |
| 22 }; |
| 23 |
| 24 } // namespace webkit_glue |
| 25 |
| 26 #endif |
OLD | NEW |