| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 | 4 |
| 5 #ifndef MOJO_SERVICES_HTML_VIEWER_WEB_THREAD_IMPL_H_ | 5 #ifndef COMPONENTS_HTML_VIEWER_WEB_THREAD_IMPL_H_ |
| 6 #define MOJO_SERVICES_HTML_VIEWER_WEB_THREAD_IMPL_H_ | 6 #define COMPONENTS_HTML_VIEWER_WEB_THREAD_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/threading/thread.h" | 11 #include "base/threading/thread.h" |
| 12 #include "mojo/services/html_viewer/web_scheduler_impl.h" | 12 #include "components/html_viewer/web_scheduler_impl.h" |
| 13 #include "third_party/WebKit/public/platform/WebThread.h" | 13 #include "third_party/WebKit/public/platform/WebThread.h" |
| 14 | 14 |
| 15 namespace html_viewer { | 15 namespace html_viewer { |
| 16 | 16 |
| 17 class WebThreadBase : public blink::WebThread { | 17 class WebThreadBase : public blink::WebThread { |
| 18 public: | 18 public: |
| 19 virtual ~WebThreadBase(); | 19 virtual ~WebThreadBase(); |
| 20 | 20 |
| 21 virtual void addTaskObserver(TaskObserver* observer); | 21 virtual void addTaskObserver(TaskObserver* observer); |
| 22 virtual void removeTaskObserver(TaskObserver* observer); | 22 virtual void removeTaskObserver(TaskObserver* observer); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 bool isCurrentThread() const override; | 78 bool isCurrentThread() const override; |
| 79 virtual blink::PlatformThreadId threadId() const; | 79 virtual blink::PlatformThreadId threadId() const; |
| 80 | 80 |
| 81 scoped_refptr<base::MessageLoopProxy> message_loop_; | 81 scoped_refptr<base::MessageLoopProxy> message_loop_; |
| 82 scoped_ptr<WebSchedulerImpl> web_scheduler_; | 82 scoped_ptr<WebSchedulerImpl> web_scheduler_; |
| 83 blink::PlatformThreadId thread_id_; | 83 blink::PlatformThreadId thread_id_; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace html_viewer | 86 } // namespace html_viewer |
| 87 | 87 |
| 88 #endif // MOJO_SERVICES_HTML_VIEWER_WEB_THREAD_IMPL_H_ | 88 #endif // COMPONENTS_HTML_VIEWER_WEB_THREAD_IMPL_H_ |
| OLD | NEW |