Chromium Code Reviews| Index: sync/internal_api/public/base/cancelation_observer.h |
| diff --git a/sync/internal_api/public/base/cancelation_observer.h b/sync/internal_api/public/base/cancelation_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7910751eb92025c68de527603cf7396f821a5a13 |
| --- /dev/null |
| +++ b/sync/internal_api/public/base/cancelation_observer.h |
| @@ -0,0 +1,22 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef SYNC_INTERNAL_API_PUBLIC_BASE_CANCELATION_OBSERVER_H_ |
| +#define SYNC_INTERNAL_API_PUBLIC_BASE_CANCELATION_OBSERVER_H_ |
| + |
| +#include "sync/base/sync_export.h" |
| + |
| +namespace syncer { |
| + |
| +// Interface for classes that handle signals from the CancelationSignal. |
| +class SYNC_EXPORT_PRIVATE CancelationObserver { |
| + public: |
| + CancelationObserver(); |
| + virtual ~CancelationObserver() = 0; |
| + virtual void OnStopRequested() = 0; |
|
tim (not reviewing)
2013/09/06 21:47:34
Add a comment that this is invoked while holding a
rlarocque
2013/09/06 22:42:53
Done.
|
| +}; |
| + |
| +} // namespace syncer |
| + |
| +#endif // SYNC_INTERNAL_API_PUBLIC_BASE_CANCELATION_OBSERVER_H_ |