| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BASE_WORKER_POOL_H_ | 5 #ifndef CC_RESOURCES_WORKER_POOL_H_ |
| 6 #define CC_BASE_WORKER_POOL_H_ | 6 #define CC_RESOURCES_WORKER_POOL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/cancelable_callback.h" | 12 #include "base/cancelable_callback.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 void DispatchCompletionCallbacks(TaskDeque* completed_tasks); | 144 void DispatchCompletionCallbacks(TaskDeque* completed_tasks); |
| 145 | 145 |
| 146 bool in_dispatch_completion_callbacks_; | 146 bool in_dispatch_completion_callbacks_; |
| 147 | 147 |
| 148 // Hide the gory details of the worker pool in |inner_|. | 148 // Hide the gory details of the worker pool in |inner_|. |
| 149 const scoped_ptr<Inner> inner_; | 149 const scoped_ptr<Inner> inner_; |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace cc | 152 } // namespace cc |
| 153 | 153 |
| 154 #endif // CC_BASE_WORKER_POOL_H_ | 154 #endif // CC_RESOURCES_WORKER_POOL_H_ |
| OLD | NEW |