| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CC_TREES_TASK_RUNNER_PROVIDER_H_ | 5 #ifndef CC_TREES_TASK_RUNNER_PROVIDER_H_ |
| 6 #define CC_TREES_TASK_RUNNER_PROVIDER_H_ | 6 #define CC_TREES_TASK_RUNNER_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| 16 #include "base/threading/platform_thread.h" | 16 #include "base/threading/platform_thread.h" |
| 17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 18 #include "base/values.h" | 18 #include "base/values.h" |
| 19 #include "cc/base/cc_export.h" | 19 #include "cc/cc_export.h" |
| 20 | 20 |
| 21 namespace base { | 21 namespace base { |
| 22 class SingleThreadTaskRunner; | 22 class SingleThreadTaskRunner; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace cc { | 25 namespace cc { |
| 26 class BlockingTaskRunner; | 26 class BlockingTaskRunner; |
| 27 | 27 |
| 28 // Class responsible for controlling access to the main and impl task runners. | 28 // Class responsible for controlling access to the main and impl task runners. |
| 29 // Useful for assertion checks. | 29 // Useful for assertion checks. |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 ~DebugScopedSetMainThreadBlocked() {} | 106 ~DebugScopedSetMainThreadBlocked() {} |
| 107 | 107 |
| 108 private: | 108 private: |
| 109 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 109 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
| 110 }; | 110 }; |
| 111 #endif | 111 #endif |
| 112 | 112 |
| 113 } // namespace cc | 113 } // namespace cc |
| 114 | 114 |
| 115 #endif // CC_TREES_TASK_RUNNER_PROVIDER_H_ | 115 #endif // CC_TREES_TASK_RUNNER_PROVIDER_H_ |
| OLD | NEW |