summaryrefslogtreecommitdiff
path: root/chromium/components/exo/data_offer_observer.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/exo/data_offer_observer.h')
-rw-r--r--chromium/components/exo/data_offer_observer.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/chromium/components/exo/data_offer_observer.h b/chromium/components/exo/data_offer_observer.h
new file mode 100644
index 00000000000..d05b0352146
--- /dev/null
+++ b/chromium/components/exo/data_offer_observer.h
@@ -0,0 +1,27 @@
+// Copyright 2017 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 COMPONENTS_EXO_DATA_OFFER_OBSERVER_H_
+#define COMPONENTS_EXO_DATA_OFFER_OBSERVER_H_
+
+#include <string>
+
+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() {}
+};
+
+} // namespace exo
+
+#endif // COMPONENTS_EXO_DATA_OFFER_OBSERVER_H_