Avi Drissman | 8ba1bad | 2022-09-13 19:22:36 | [diff] [blame] | 1 | // Copyright 2017 The Chromium Authors |
Daichi Hirono | 29647ac | 2017-08-15 09:11:52 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef COMPONENTS_EXO_DATA_OFFER_OBSERVER_H_ |
| 6 | #define COMPONENTS_EXO_DATA_OFFER_OBSERVER_H_ |
| 7 | |
Daichi Hirono | 29647ac | 2017-08-15 09:11:52 | [diff] [blame] | 8 | namespace exo { |
| 9 | |
| 10 | class DataOffer; |
| 11 | |
| 12 | // Handles events on data devices in context-specific ways. |
| 13 | class DataOfferObserver { |
| 14 | public: |
| 15 | // Called at the top of the data device's destructor, to give observers a |
| 16 | // chance to remove themselves. |
| 17 | virtual void OnDataOfferDestroying(DataOffer* offer) = 0; |
| 18 | |
| 19 | protected: |
Sorin Jianu | b2525ed | 2024-10-09 16:18:56 | [diff] [blame] | 20 | virtual ~DataOfferObserver() = default; |
Daichi Hirono | 29647ac | 2017-08-15 09:11:52 | [diff] [blame] | 21 | }; |
| 22 | |
| 23 | } // namespace exo |
| 24 | |
| 25 | #endif // COMPONENTS_EXO_DATA_OFFER_OBSERVER_H_ |