| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_SYNC_BASE_CANCELATION_SIGNAL_H_ | 5 #ifndef COMPONENTS_SYNC_BASE_CANCELATION_SIGNAL_H_ |
| 6 #define COMPONENTS_SYNC_BASE_CANCELATION_SIGNAL_H_ | 6 #define COMPONENTS_SYNC_BASE_CANCELATION_SIGNAL_H_ |
| 7 | 7 |
| 8 #include "base/synchronization/lock.h" | 8 #include "base/synchronization/lock.h" |
| 9 | 9 |
| 10 namespace syncer { | 10 namespace syncer { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // SignalReceived() will be called with the |signal_lock_| held. | 55 // SignalReceived() will be called with the |signal_lock_| held. |
| 56 void Signal(); | 56 void Signal(); |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 // Protects all members of this class. | 59 // Protects all members of this class. |
| 60 base::Lock signal_lock_; | 60 base::Lock signal_lock_; |
| 61 | 61 |
| 62 // True if Signal() has been invoked. | 62 // True if Signal() has been invoked. |
| 63 bool signalled_; | 63 bool signalled_; |
| 64 | 64 |
| 65 // The registered abort handler. May be NULL. | 65 // The registered abort handler. May be null. |
| 66 CancelationObserver* handler_; | 66 CancelationObserver* handler_; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace syncer | 69 } // namespace syncer |
| 70 | 70 |
| 71 #endif // COMPONENTS_SYNC_BASE_CANCELATION_SIGNAL_H_ | 71 #endif // COMPONENTS_SYNC_BASE_CANCELATION_SIGNAL_H_ |
| OLD | NEW |