desktop_notification_delegate.h revision 0529e5d033099cbfc42635f6f6183833b09dff6e
1// Copyright 2014 The Chromium Authors. All rights reserved.
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 CONTENT_PUBLIC_BROWSER_DESKTOP_NOTIFICATION_DELEGATE_H_
6#define CONTENT_PUBLIC_BROWSER_DESKTOP_NOTIFICATION_DELEGATE_H_
7
8namespace content {
9
10// A delegate used by ContentBrowserClient::ShowDesktopNotification to report
11// the result of a desktop notification.
12class DesktopNotificationDelegate {
13 public:
14  virtual ~DesktopNotificationDelegate() {}
15
16  // The notification was shown.
17  virtual void NotificationDisplayed() = 0;
18
19  // The notification couldn't be shown due to an error.
20  virtual void NotificationError() = 0;
21
22  // The notification was closed.
23  virtual void NotificationClosed(bool by_user) = 0;
24
25  // The user clicked on the notification.
26  virtual void NotificationClick() = 0;
27};
28
29}  // namespace content
30
31#endif  // CONTENT_PUBLIC_BROWSER_DESKTOP_NOTIFICATION_DELEGATE_H_
32