Commit ffd99575 authored by thakis's avatar thakis Committed by Commit bot

reflow comments in public/modules/{notifications,push_messaging}

BUG=563793

Review-Url: https://codereview.chromium.org/2388983002
Cr-Commit-Position: refs/heads/master@{#422598}
parent 7170a86c
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
namespace blink { namespace blink {
// A delegate through which the embedder can trigger events on a Document-bound // A delegate through which the embedder can trigger events on a Document-bound
// Web Notifications object. Service Worker-bound Web Notifications will not have // Web Notifications object. Service Worker-bound Web Notifications will not
// a delegate, as their events will be fired on a Service Worker instead. // have a delegate, as their events will be fired on a Service Worker instead.
class WebNotificationDelegate { class WebNotificationDelegate {
public: public:
virtual void dispatchClickEvent() = 0; virtual void dispatchClickEvent() = 0;
......
...@@ -34,25 +34,27 @@ class WebNotificationManager { ...@@ -34,25 +34,27 @@ class WebNotificationManager {
public: public:
virtual ~WebNotificationManager() {} virtual ~WebNotificationManager() {}
// Shows a page notification on the user's system. These notifications will have their // Shows a page notification on the user's system. These notifications will
// events delivered to the delegate specified in this call. // have their events delivered to the delegate specified in this call.
virtual void show(const WebSecurityOrigin&, virtual void show(const WebSecurityOrigin&,
const WebNotificationData&, const WebNotificationData&,
std::unique_ptr<WebNotificationResources>, std::unique_ptr<WebNotificationResources>,
WebNotificationDelegate*) = 0; WebNotificationDelegate*) = 0;
// Shows a persistent notification on the user's system. These notifications will have // Shows a persistent notification on the user's system. These notifications
// their events delivered to a Service Worker rather than the object's delegate. Will // will have their events delivered to a Service Worker rather than the
// take ownership of the WebNotificationShowCallbacks object. // object's delegate. Will take ownership of the WebNotificationShowCallbacks
// object.
virtual void showPersistent(const WebSecurityOrigin&, virtual void showPersistent(const WebSecurityOrigin&,
const WebNotificationData&, const WebNotificationData&,
std::unique_ptr<WebNotificationResources>, std::unique_ptr<WebNotificationResources>,
WebServiceWorkerRegistration*, WebServiceWorkerRegistration*,
WebNotificationShowCallbacks*) = 0; WebNotificationShowCallbacks*) = 0;
// Asynchronously gets the persistent notifications belonging to the Service Worker Registration. // Asynchronously gets the persistent notifications belonging to the Service
// If |filterTag| is not an empty string, only the notification with the given tag will be // Worker Registration. If |filterTag| is not an empty string, only the
// considered. Will take ownership of the WebNotificationGetCallbacks object. // notification with the given tag will be considered. Will take ownership of
// the WebNotificationGetCallbacks object.
virtual void getNotifications(const WebString& filterTag, virtual void getNotifications(const WebString& filterTag,
WebServiceWorkerRegistration*, WebServiceWorkerRegistration*,
WebNotificationGetCallbacks*) = 0; WebNotificationGetCallbacks*) = 0;
......
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
namespace blink { namespace blink {
struct WebPushSubscription { struct WebPushSubscription {
// The |endpoint|, |p256dh| and |auth| must all be unique for each subscription. // The |endpoint|, |p256dh| and |auth| must all be unique for each
// subscription.
WebPushSubscription(const WebURL& endpoint, WebPushSubscription(const WebURL& endpoint,
bool userVisibleOnly, bool userVisibleOnly,
const WebString& applicationServerKey, const WebString& applicationServerKey,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment