| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CHILD_WEBTHREAD_IMPL_H_ | 4 #ifndef WEBKIT_CHILD_WEBTHREAD_IMPL_H_ |
| 5 #define WEBKIT_CHILD_WEBTHREAD_IMPL_H_ | 5 #define WEBKIT_CHILD_WEBTHREAD_IMPL_H_ |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
| 11 #include "third_party/WebKit/public/platform/WebThread.h" | 11 #include "third_party/WebKit/public/platform/WebThread.h" |
| 12 #include "webkit/child/webkit_child_export.h" | 12 #include "webkit/child/webkit_child_export.h" |
| 13 | 13 |
| 14 namespace webkit_glue { | 14 namespace webkit_glue { |
| 15 | 15 |
| 16 class WebThreadBase : public WebKit::WebThread { | 16 class WebThreadBase : public blink::WebThread { |
| 17 public: | 17 public: |
| 18 virtual ~WebThreadBase(); | 18 virtual ~WebThreadBase(); |
| 19 | 19 |
| 20 virtual void addTaskObserver(TaskObserver* observer); | 20 virtual void addTaskObserver(TaskObserver* observer); |
| 21 virtual void removeTaskObserver(TaskObserver* observer); | 21 virtual void removeTaskObserver(TaskObserver* observer); |
| 22 | 22 |
| 23 virtual bool isCurrentThread() const = 0; | 23 virtual bool isCurrentThread() const = 0; |
| 24 | 24 |
| 25 protected: | 25 protected: |
| 26 WebThreadBase(); | 26 WebThreadBase(); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 virtual void exitRunLoop(); | 63 virtual void exitRunLoop(); |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 virtual bool isCurrentThread() const OVERRIDE; | 66 virtual bool isCurrentThread() const OVERRIDE; |
| 67 scoped_refptr<base::MessageLoopProxy> message_loop_; | 67 scoped_refptr<base::MessageLoopProxy> message_loop_; |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 } // namespace webkit_glue | 70 } // namespace webkit_glue |
| 71 | 71 |
| 72 #endif // WEBKIT_CHILD_WEBTHREAD_IMPL_H_ | 72 #endif // WEBKIT_CHILD_WEBTHREAD_IMPL_H_ |
| OLD | NEW |