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.
5 #ifndef COMPONENTS_HTML_VIEWER_WEB_NOTIFICATION_MANAGER_IMPL_H_
6 #define COMPONENTS_HTML_VIEWER_WEB_NOTIFICATION_MANAGER_IMPL_H_
8 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.h"
11 class WebSecurityOrigin
;
14 namespace html_viewer
{
16 // TODO(erg): This class is currently a stub; blink expects this object to
17 // exist, and several websites will trigger notifications these days.
18 class WebNotificationManagerImpl
: public blink::WebNotificationManager
{
20 WebNotificationManagerImpl();
21 virtual ~WebNotificationManagerImpl();
23 // blink::WebNotificationManager methods:
24 virtual void show(const blink::WebSecurityOrigin
&,
25 const blink::WebNotificationData
&,
26 blink::WebNotificationDelegate
*);
27 virtual void showPersistent(const blink::WebSecurityOrigin
&,
28 const blink::WebNotificationData
&,
29 blink::WebServiceWorkerRegistration
*,
30 blink::WebNotificationShowCallbacks
*);
31 virtual void getNotifications(const blink::WebString
& filterTag
,
32 blink::WebServiceWorkerRegistration
*,
33 blink::WebNotificationGetCallbacks
*);
34 virtual void close(blink::WebNotificationDelegate
*);
35 virtual void closePersistent(const blink::WebSecurityOrigin
&,
36 int64_t persistentNotificationId
);
37 virtual void closePersistent(
38 const blink::WebSecurityOrigin
&,
39 const blink::WebString
& persistentNotificationId
);
40 virtual void notifyDelegateDestroyed(blink::WebNotificationDelegate
*);
41 virtual blink::WebNotificationPermission
checkPermission(
42 const blink::WebSecurityOrigin
&);
43 virtual size_t maxActions();
46 DISALLOW_COPY_AND_ASSIGN(WebNotificationManagerImpl
);
49 } // namespace html_viewer
51 #endif // COMPONENTS_HTML_VIEWER_WEB_NOTIFICATION_MANAGER_IMPL_H_