OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 #ifndef WEBKIT_GLUE_WEBTHREAD_IMPL_H_ | 4 #ifndef WEBKIT_GLUE_WEBTHREAD_IMPL_H_ |
5 #define WEBKIT_GLUE_WEBTHREAD_IMPL_H_ | 5 #define WEBKIT_GLUE_WEBTHREAD_IMPL_H_ |
6 | 6 |
7 #include "base/threading/thread.h" | 7 #include "base/threading/thread.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebThread.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebThread.h" |
10 #include "webkit/glue/webkit_glue_export.h" | 10 #include "webkit/glue/webkit_glue_export.h" |
11 | 11 |
12 namespace webkit_glue { | 12 namespace webkit_glue { |
13 | 13 |
14 class WebThreadImpl : public WebKit::WebThread { | 14 class WebThreadImpl : public WebKit::WebThread { |
15 public: | 15 public: |
16 WEBKIT_GLUE_EXPORT WebThreadImpl(const char* name); | 16 WEBKIT_GLUE_EXPORT WebThreadImpl(const char* name); |
17 WEBKIT_GLUE_EXPORT virtual ~WebThreadImpl(); | 17 WEBKIT_GLUE_EXPORT virtual ~WebThreadImpl(); |
18 | 18 |
19 virtual void postTask(Task* task) OVERRIDE; | 19 virtual void postTask(Task* task) OVERRIDE; |
(...skipping 13 matching lines...) Expand all Loading... |
33 virtual void postTask(Task* task) OVERRIDE; | 33 virtual void postTask(Task* task) OVERRIDE; |
34 virtual void postDelayedTask(Task* task, long long delay_ms) OVERRIDE; | 34 virtual void postDelayedTask(Task* task, long long delay_ms) OVERRIDE; |
35 | 35 |
36 protected: | 36 protected: |
37 scoped_refptr<base::MessageLoopProxy> message_loop_; | 37 scoped_refptr<base::MessageLoopProxy> message_loop_; |
38 }; | 38 }; |
39 | 39 |
40 } // namespace webkit_glue | 40 } // namespace webkit_glue |
41 | 41 |
42 #endif | 42 #endif |
OLD | NEW |