Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Side by Side Diff: content/browser/notifications/page_notification_delegate.h

Issue 2906883003: Deprecate per notification type delegates. (Closed)
Patch Set: review Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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_BROWSER_NOTIFICATIONS_PAGE_NOTIFICATION_DELEGATE_H_
6 #define CONTENT_BROWSER_NOTIFICATIONS_PAGE_NOTIFICATION_DELEGATE_H_
7
8 #include <string>
9
10 #include "content/public/browser/desktop_notification_delegate.h"
11
12 namespace content {
13
14 // A delegate used by the notification service to report the results of platform
15 // notification interactions to Web Notifications whose lifetime is tied to
16 // that of the page displaying them.
17 class PageNotificationDelegate : public DesktopNotificationDelegate {
18 public:
19 PageNotificationDelegate(int render_process_id,
20 int non_persistent_notification_id,
21 const std::string& notification_id);
22 ~PageNotificationDelegate() override;
23
24 // DesktopNotificationDelegate implementation.
25 void NotificationDisplayed() override;
26 void NotificationClosed() override;
27 void NotificationClick() override;
28
29 private:
30 int render_process_id_;
31 int non_persistent_notification_id_;
32 std::string notification_id_;
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_BROWSER_NOTIFICATIONS_PAGE_NOTIFICATION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698