| // Copyright 2017 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef COMPONENTS_EXO_DATA_OFFER_OBSERVER_H_ |
| #define COMPONENTS_EXO_DATA_OFFER_OBSERVER_H_ |
| |
| namespace exo { |
| |
| class DataOffer; |
| |
| // Handles events on data devices in context-specific ways. |
| class DataOfferObserver { |
| public: |
| // Called at the top of the data device's destructor, to give observers a |
| // chance to remove themselves. |
| virtual void OnDataOfferDestroying(DataOffer* offer) = 0; |
| |
| protected: |
| virtual ~DataOfferObserver() = default; |
| }; |
| |
| } // namespace exo |
| |
| #endif // COMPONENTS_EXO_DATA_OFFER_OBSERVER_H_ |