| 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/base/cc_export.h" |
| 20 | 20 |
| 21 namespace base { | 21 namespace base { |
| 22 namespace trace_event { | |
| 23 class TracedValue; | |
| 24 } | |
| 25 class SingleThreadTaskRunner; | 22 class SingleThreadTaskRunner; |
| 26 } | 23 } |
| 27 | 24 |
| 28 namespace cc { | 25 namespace cc { |
| 29 class BlockingTaskRunner; | 26 class BlockingTaskRunner; |
| 30 | 27 |
| 31 // 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. |
| 32 // Useful for assertion checks. | 29 // Useful for assertion checks. |
| 33 class CC_EXPORT TaskRunnerProvider { | 30 class CC_EXPORT TaskRunnerProvider { |
| 34 public: | 31 public: |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 ~DebugScopedSetMainThreadBlocked() {} | 106 ~DebugScopedSetMainThreadBlocked() {} |
| 110 | 107 |
| 111 private: | 108 private: |
| 112 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 109 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
| 113 }; | 110 }; |
| 114 #endif | 111 #endif |
| 115 | 112 |
| 116 } // namespace cc | 113 } // namespace cc |
| 117 | 114 |
| 118 #endif // CC_TREES_TASK_RUNNER_PROVIDER_H_ | 115 #endif // CC_TREES_TASK_RUNNER_PROVIDER_H_ |
| OLD | NEW |