Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 MOJO_SERVICES_HTML_VIEWER_WEBNOTIFICATIONMANAGER_IMPL_H_ | |
| 6 #define MOJO_SERVICES_HTML_VIEWER_WEBNOTIFICATIONMANAGER_IMPL_H_ | |
| 7 | |
| 8 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati onManager.h" | |
| 9 | |
| 10 namespace html_viewer { | |
| 11 | |
| 12 // TODO(erg): This class is currently a stub; blink expects this object to | |
| 13 // exist, and several websites will trigger notifications these days. | |
| 14 class WebNotificationManagerImpl : public blink::WebNotificationManager { | |
| 15 public: | |
| 16 ~WebNotificationManagerImpl() override; | |
| 17 | |
| 18 // blink::WebNotificationManager methods: | |
| 19 void show(const blink::WebSerializedOrigin&, | |
| 20 const blink::WebNotificationData&, | |
| 21 blink::WebNotificationDelegate*) override; | |
| 22 void showPersistent(const blink::WebSerializedOrigin&, | |
| 23 const blink::WebNotificationData&, | |
| 24 blink::WebServiceWorkerRegistration*, | |
| 25 blink::WebNotificationShowCallbacks*) override; | |
| 26 void getNotifications(const blink::WebString& filterTag, | |
| 27 blink::WebServiceWorkerRegistration*, | |
| 28 blink::WebNotificationGetCallbacks*) override; | |
| 29 void close(blink::WebNotificationDelegate*) override; | |
| 30 void closePersistent(const blink::WebSerializedOrigin&, | |
| 31 int64_t persistentNotificationId) override; | |
| 32 void closePersistent(const blink::WebSerializedOrigin&, | |
| 33 const blink::WebString& persistentNotificationId) | |
| 34 override; | |
| 35 void notifyDelegateDestroyed(blink::WebNotificationDelegate*) override; | |
| 36 blink::WebNotificationPermission checkPermission( | |
| 37 const blink::WebSerializedOrigin&) override; | |
| 38 }; | |
|
sky
2015/04/15 23:17:46
private: DISALLOW?
| |
| 39 | |
| 40 } // namespace html_viewer | |
| 41 | |
| 42 #endif // MOJO_SERVICES_HTML_VIEWER_WEBNOTIFICATIONMANAGER_IMPL_H_ | |
| OLD | NEW |