blob: fa72f8ddc73476d026a2590ace51c26972d33069 [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361// Copyright 2017 The Chromium Authors
Daichi Hirono29647ac2017-08-15 09:11:522// 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 Hirono29647ac2017-08-15 09:11:528namespace exo {
9
10class DataOffer;
11
12// Handles events on data devices in context-specific ways.
13class 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 Jianub2525ed2024-10-09 16:18:5620 virtual ~DataOfferObserver() = default;
Daichi Hirono29647ac2017-08-15 09:11:5221};
22
23} // namespace exo
24
25#endif // COMPONENTS_EXO_DATA_OFFER_OBSERVER_H_