blob: 0f39d1080f961bea7f5167bb7c56416d2b1d3e71 [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:
20 virtual ~DataOfferObserver() {}
21};
22
23} // namespace exo
24
25#endif // COMPONENTS_EXO_DATA_OFFER_OBSERVER_H_