1*635a8641SAndroid Build Coastguard Worker // Copyright (c) 2011 The Chromium Authors. All rights reserved. 2*635a8641SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be 3*635a8641SAndroid Build Coastguard Worker // found in the LICENSE file. 4*635a8641SAndroid Build Coastguard Worker 5*635a8641SAndroid Build Coastguard Worker #ifndef BASE_SYNCHRONIZATION_CANCELLATION_FLAG_H_ 6*635a8641SAndroid Build Coastguard Worker #define BASE_SYNCHRONIZATION_CANCELLATION_FLAG_H_ 7*635a8641SAndroid Build Coastguard Worker 8*635a8641SAndroid Build Coastguard Worker #include "base/synchronization/atomic_flag.h" 9*635a8641SAndroid Build Coastguard Worker 10*635a8641SAndroid Build Coastguard Worker namespace base { 11*635a8641SAndroid Build Coastguard Worker 12*635a8641SAndroid Build Coastguard Worker // Use inheritance instead of "using" to allow forward declaration of "class 13*635a8641SAndroid Build Coastguard Worker // CancellationFlag". 14*635a8641SAndroid Build Coastguard Worker // TODO(fdoray): Replace CancellationFlag with AtomicFlag throughout the 15*635a8641SAndroid Build Coastguard Worker // codebase and delete this file. crbug.com/630251 16*635a8641SAndroid Build Coastguard Worker class CancellationFlag : public AtomicFlag {}; 17*635a8641SAndroid Build Coastguard Worker 18*635a8641SAndroid Build Coastguard Worker } // namespace base 19*635a8641SAndroid Build Coastguard Worker 20*635a8641SAndroid Build Coastguard Worker #endif // BASE_SYNCHRONIZATION_CANCELLATION_FLAG_H_ 21