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_THREADING_SEQUENCED_WORKER_POOL_UNITTEST_H_ | 5 #ifndef BASE_TEST_SEQUENCED_WORKER_POOL_OWNER_H_ |
6 #define BASE_THREADING_SEQUENCED_WORKER_POOL_UNITTEST_H_ | 6 #define BASE_TEST_SEQUENCED_WORKER_POOL_OWNER_H_ |
7 | 7 |
8 #include <cstddef> | 8 #include <cstddef> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
16 #include "base/threading/sequenced_worker_pool.h" | 16 #include "base/threading/sequenced_worker_pool.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 Closure will_wait_for_shutdown_callback_; | 51 Closure will_wait_for_shutdown_callback_; |
52 | 52 |
53 mutable Lock has_work_lock_; | 53 mutable Lock has_work_lock_; |
54 int has_work_call_count_; | 54 int has_work_call_count_; |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(SequencedWorkerPoolOwner); | 56 DISALLOW_COPY_AND_ASSIGN(SequencedWorkerPoolOwner); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace base | 59 } // namespace base |
60 | 60 |
61 #endif // BASE_THREADING_SEQUENCED_WORKER_POOL_UNITTEST_H_ | 61 #endif // BASE_TEST_SEQUENCED_WORKER_POOL_OWNER_H_ |
OLD | NEW |