OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 BASE_TEST_SEQUENCED_WORKER_POOL_OWNER_H_ | 5 #ifndef BASE_TEST_SEQUENCED_WORKER_POOL_OWNER_H_ |
6 #define BASE_TEST_SEQUENCED_WORKER_POOL_OWNER_H_ | 6 #define BASE_TEST_SEQUENCED_WORKER_POOL_OWNER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <cstddef> | 10 #include <cstddef> |
9 #include <string> | 11 #include <string> |
10 | 12 |
11 #include "base/basictypes.h" | |
12 #include "base/callback.h" | 13 #include "base/callback.h" |
13 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
15 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
16 #include "base/synchronization/lock.h" | 18 #include "base/synchronization/lock.h" |
17 #include "base/threading/sequenced_worker_pool.h" | 19 #include "base/threading/sequenced_worker_pool.h" |
18 | 20 |
19 namespace base { | 21 namespace base { |
20 | 22 |
21 class MessageLoop; | 23 class MessageLoop; |
22 | 24 |
23 // Wrapper around SequencedWorkerPool for testing that blocks destruction | 25 // Wrapper around SequencedWorkerPool for testing that blocks destruction |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 62 |
61 mutable Lock has_work_lock_; | 63 mutable Lock has_work_lock_; |
62 int has_work_call_count_; | 64 int has_work_call_count_; |
63 | 65 |
64 DISALLOW_COPY_AND_ASSIGN(SequencedWorkerPoolOwner); | 66 DISALLOW_COPY_AND_ASSIGN(SequencedWorkerPoolOwner); |
65 }; | 67 }; |
66 | 68 |
67 } // namespace base | 69 } // namespace base |
68 | 70 |
69 #endif // BASE_TEST_SEQUENCED_WORKER_POOL_OWNER_H_ | 71 #endif // BASE_TEST_SEQUENCED_WORKER_POOL_OWNER_H_ |
OLD | NEW |