| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/threading/thread.h" | 9 #include "base/threading/thread.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 WEBKIT_GLUE_EXPORT explicit WebThreadImplForMessageLoop( | 55 WEBKIT_GLUE_EXPORT explicit WebThreadImplForMessageLoop( |
| 56 base::MessageLoopProxy* message_loop); | 56 base::MessageLoopProxy* message_loop); |
| 57 WEBKIT_GLUE_EXPORT virtual ~WebThreadImplForMessageLoop(); | 57 WEBKIT_GLUE_EXPORT virtual ~WebThreadImplForMessageLoop(); |
| 58 | 58 |
| 59 virtual void postTask(Task* task); | 59 virtual void postTask(Task* task); |
| 60 virtual void postDelayedTask(Task* task, long long delay_ms); | 60 virtual void postDelayedTask(Task* task, long long delay_ms); |
| 61 | 61 |
| 62 virtual void enterRunLoop(); | 62 virtual void enterRunLoop(); |
| 63 virtual void exitRunLoop(); | 63 virtual void exitRunLoop(); |
| 64 | 64 |
| 65 scoped_refptr<base::MessageLoopProxy> message_loop_proxy() const { return mess
age_loop_; } |
| 66 |
| 65 private: | 67 private: |
| 66 virtual bool IsCurrentThread() const OVERRIDE; | 68 virtual bool IsCurrentThread() const OVERRIDE; |
| 67 scoped_refptr<base::MessageLoopProxy> message_loop_; | 69 scoped_refptr<base::MessageLoopProxy> message_loop_; |
| 68 }; | 70 }; |
| 69 | 71 |
| 70 } // namespace webkit_glue | 72 } // namespace webkit_glue |
| 71 | 73 |
| 72 #endif | 74 #endif |
| OLD | NEW |