Chromium Code Reviews| Index: content/browser/notifications/page_notification_delegate.h |
| diff --git a/content/browser/notifications/page_notification_delegate.h b/content/browser/notifications/page_notification_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..98533cf1a13a5c53710a17202419c1fc2024d200 |
| --- /dev/null |
| +++ b/content/browser/notifications/page_notification_delegate.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2014 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 CONTENT_BROWSER_NOTIFICATIONS_PAGE_NOTIFICATION_DELEGATE_H_ |
| +#define CONTENT_BROWSER_NOTIFICATIONS_PAGE_NOTIFICATION_DELEGATE_H_ |
| + |
| +#include "content/public/browser/desktop_notification_delegate.h" |
| + |
| +namespace content { |
| + |
| +// A delegate used by the notification service to report the results of platform |
| +// notification interactions to Web Notifications which' lifetime is tied to |
|
Avi (use Gerrit)
2014/10/29 20:25:52
s/which'/whose/
Peter Beverloo
2014/10/29 21:15:18
Done.
|
| +// that of the page displaying them. |
| +class PageNotificationDelegate : public DesktopNotificationDelegate { |
| + public: |
| + PageNotificationDelegate(int render_process_id, int notification_id); |
| + ~PageNotificationDelegate() override; |
| + |
| + // DesktopNotificationDelegate implementation. |
| + void NotificationDisplayed() override; |
| + void NotificationError() override; |
| + void NotificationClosed(bool by_user) override; |
| + void NotificationClick() override; |
| + |
| + private: |
| + int render_process_id_; |
| + int notification_id_; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_NOTIFICATIONS_PAGE_NOTIFICATION_DELEGATE_H_ |