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_THREAD_RESTRICTIONS_H_ | 5 #ifndef BASE_THREADING_THREAD_RESTRICTIONS_H_ |
6 #define BASE_THREADING_THREAD_RESTRICTIONS_H_ | 6 #define BASE_THREADING_THREAD_RESTRICTIONS_H_ |
7 | 7 |
8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
9 #include "base/logging.h" | |
9 #include "base/macros.h" | 10 #include "base/macros.h" |
10 | 11 |
11 // See comment at top of thread_checker.h | 12 // See comment at top of thread_checker.h |
12 #if (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) | 13 #if DCHECK_IS_ON() |
13 #define ENABLE_THREAD_RESTRICTIONS 1 | 14 #define ENABLE_THREAD_RESTRICTIONS 1 |
danakj
2016/07/19 20:17:02
dittos?
gab
2016/07/20 02:43:58
This one was used across the codebase, switched to
| |
14 #else | 15 #else |
15 #define ENABLE_THREAD_RESTRICTIONS 0 | 16 #define ENABLE_THREAD_RESTRICTIONS 0 |
16 #endif | 17 #endif |
17 | 18 |
18 class BrowserProcessImpl; | 19 class BrowserProcessImpl; |
19 class HistogramSynchronizer; | 20 class HistogramSynchronizer; |
20 class NativeBackendKWallet; | 21 class NativeBackendKWallet; |
21 class ScopedAllowWaitForLegacyWebViewApi; | 22 class ScopedAllowWaitForLegacyWebViewApi; |
22 | 23 |
23 namespace cc { | 24 namespace cc { |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
261 | 262 |
262 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 263 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
263 }; | 264 }; |
264 | 265 |
265 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 266 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
266 }; | 267 }; |
267 | 268 |
268 } // namespace base | 269 } // namespace base |
269 | 270 |
270 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 271 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
OLD | NEW |