| 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 COMPONENTS_SCHEDULER_CHILD_WEBTHREAD_BASE_H_ | 5 #ifndef COMPONENTS_SCHEDULER_CHILD_WEBTHREAD_BASE_H_ |
| 6 #define COMPONENTS_SCHEDULER_CHILD_WEBTHREAD_BASE_H_ | 6 #define COMPONENTS_SCHEDULER_CHILD_WEBTHREAD_BASE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "base/threading/thread.h" | 11 #include "base/threading/thread.h" |
| 12 #include "components/scheduler/scheduler_export.h" | 12 #include "components/scheduler/scheduler_export.h" |
| 13 #include "third_party/WebKit/public/platform/WebThread.h" | 13 #include "third_party/WebKit/public/platform/WebThread.h" |
| 14 #include "third_party/WebKit/public/platform/WebTraceLocation.h" | 14 |
| 15 namespace blink { |
| 16 class WebTraceLocation; |
| 17 } |
| 15 | 18 |
| 16 namespace scheduler { | 19 namespace scheduler { |
| 17 class SingleThreadIdleTaskRunner; | 20 class SingleThreadIdleTaskRunner; |
| 18 | 21 |
| 19 class SCHEDULER_EXPORT WebThreadBase : public blink::WebThread { | 22 class SCHEDULER_EXPORT WebThreadBase : public blink::WebThread { |
| 20 public: | 23 public: |
| 21 ~WebThreadBase() override; | 24 ~WebThreadBase() override; |
| 22 | 25 |
| 23 // blink::WebThread implementation. | 26 // blink::WebThread implementation. |
| 24 bool isCurrentThread() const override; | 27 bool isCurrentThread() const override; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 55 base::TimeTicks deadline); | 58 base::TimeTicks deadline); |
| 56 | 59 |
| 57 private: | 60 private: |
| 58 typedef std::map<TaskObserver*, TaskObserverAdapter*> TaskObserverMap; | 61 typedef std::map<TaskObserver*, TaskObserverAdapter*> TaskObserverMap; |
| 59 TaskObserverMap task_observer_map_; | 62 TaskObserverMap task_observer_map_; |
| 60 }; | 63 }; |
| 61 | 64 |
| 62 } // namespace scheduler | 65 } // namespace scheduler |
| 63 | 66 |
| 64 #endif // COMPONENTS_SCHEDULER_CHILD_WEBTHREAD_BASE_H_ | 67 #endif // COMPONENTS_SCHEDULER_CHILD_WEBTHREAD_BASE_H_ |
| OLD | NEW |