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

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

Issue 1116693002: [NOT FOR REVIEW] Significantly simplify the PlatformNotificationService //content API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 2015 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_PERSISTENT_NOTIFICATION_DELEGATE_H_
6 #define CONTENT_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_
7
8 #include <stdint.h>
9
10 #include "ui/message_center/notification_delegate.h"
11 #include "url/gurl.h"
12
13 namespace content {
14
15 class BrowserContext;
16
17 //
18 class PersistentNotificationDelegate
19 : public message_center::NotificationDelegate {
20 public:
21 PersistentNotificationDelegate(BrowserContext* browser_context,
22 const GURL& origin,
23 int64_t persistent_notification_id);
24
25 // message_center::NotificationDelegate implementation.
26 void Display() override {}
27 void Close(bool by_user) override;
28 bool HasClickedListener() override;
29 void Click() override;
30 void ButtonClick(int button_index) override {}
31
32 private:
33 ~PersistentNotificationDelegate() override;
34
35 BrowserContext* browser_context_;
36 GURL origin_;
37 int64_t persistent_notification_id_;
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698