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

Side by Side Diff: components/html_viewer/web_notification_manager_impl.h

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 10 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 COMPONENTS_HTML_VIEWER_WEB_NOTIFICATION_MANAGER_IMPL_H_
6 #define COMPONENTS_HTML_VIEWER_WEB_NOTIFICATION_MANAGER_IMPL_H_
7
8 #include <stddef.h>
9 #include <stdint.h>
10
11 #include "base/macros.h"
12 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati onManager.h"
13
14 namespace blink {
15 class WebSecurityOrigin;
16 }
17
18 namespace html_viewer {
19
20 // TODO(erg): This class is currently a stub; blink expects this object to
21 // exist, and several websites will trigger notifications these days.
22 class WebNotificationManagerImpl : public blink::WebNotificationManager {
23 public:
24 WebNotificationManagerImpl();
25 ~WebNotificationManagerImpl() override;
26
27 // blink::WebNotificationManager methods:
28 void show(const blink::WebSecurityOrigin& origin,
29 const blink::WebNotificationData& notification_data,
30 blink::WebNotificationDelegate* delegate) override;
31 void showPersistent(
32 const blink::WebSecurityOrigin& origin,
33 const blink::WebNotificationData& notification_data,
34 blink::WebServiceWorkerRegistration* service_worker_registration,
35 blink::WebNotificationShowCallbacks* callbacks) override;
36 void getNotifications(
37 const blink::WebString& filter_tag,
38 blink::WebServiceWorkerRegistration* service_worker_registration,
39 blink::WebNotificationGetCallbacks* callbacks) override;
40 void close(blink::WebNotificationDelegate* delegate) override;
41 void closePersistent(const blink::WebSecurityOrigin& origin,
42 int64_t persistent_notification_id) override;
43 void notifyDelegateDestroyed(blink::WebNotificationDelegate* delegate)
44 override;
45 blink::WebNotificationPermission checkPermission(
46 const blink::WebSecurityOrigin& origin) override;
47 size_t maxActions() override;
48
49 private:
50 DISALLOW_COPY_AND_ASSIGN(WebNotificationManagerImpl);
51 };
52
53 } // namespace html_viewer
54
55 #endif // COMPONENTS_HTML_VIEWER_WEB_NOTIFICATION_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « components/html_viewer/web_mime_registry_impl.cc ('k') | components/html_viewer/web_notification_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698