OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_NON_THREAD_SAFE_H__ | 5 #ifndef BASE_NON_THREAD_SAFE_H__ |
6 #define BASE_NON_THREAD_SAFE_H__ | 6 #define BASE_NON_THREAD_SAFE_H__ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/platform_thread.h" | 9 #include "base/platform_thread.h" |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 NonThreadSafe() {} | 44 NonThreadSafe() {} |
45 ~NonThreadSafe() {} | 45 ~NonThreadSafe() {} |
46 | 46 |
47 bool CalledOnValidThread() const { | 47 bool CalledOnValidThread() const { |
48 return true; | 48 return true; |
49 } | 49 } |
50 }; | 50 }; |
51 #endif // NDEBUG | 51 #endif // NDEBUG |
52 | 52 |
53 #endif // BASE_NON_THREAD_SAFE_H__ | 53 #endif // BASE_NON_THREAD_SAFE_H__ |
54 | |
OLD | NEW |