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