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 @@
namespace blink {
// A delegate through which the embedder can trigger events on a Document-bound
// Web Notifications object. Service Worker-bound Web Notifications will not have
// a delegate, as their events will be fired on a Service Worker instead.
// Web Notifications object. Service Worker-bound Web Notifications will not
// have a delegate, as their events will be fired on a Service Worker instead.
class WebNotificationDelegate {
public:
virtual void dispatchClickEvent() = 0;
......
......@@ -34,25 +34,27 @@ class WebNotificationManager {
public:
virtual ~WebNotificationManager() {}
// Shows a page notification on the user's system. These notifications will have their
// events delivered to the delegate specified in this call.
// Shows a page notification on the user's system. These notifications will
// have their events delivered to the delegate specified in this call.
virtual void show(const WebSecurityOrigin&,
const WebNotificationData&,
std::unique_ptr<WebNotificationResources>,
WebNotificationDelegate*) = 0;
// Shows a persistent notification on the user's system. These notifications will have
// their events delivered to a Service Worker rather than the object's delegate. Will
// take ownership of the WebNotificationShowCallbacks object.
// Shows a persistent notification on the user's system. These notifications
// will have their events delivered to a Service Worker rather than the
// object's delegate. Will take ownership of the WebNotificationShowCallbacks
// object.
virtual void showPersistent(const WebSecurityOrigin&,
const WebNotificationData&,
std::unique_ptr<WebNotificationResources>,
WebServiceWorkerRegistration*,
WebNotificationShowCallbacks*) = 0;
// Asynchronously gets the persistent notifications belonging to the Service Worker Registration.
// If |filterTag| is not an empty string, only the notification with the given tag will be
// considered. Will take ownership of the WebNotificationGetCallbacks object.
// Asynchronously gets the persistent notifications belonging to the Service
// Worker Registration. If |filterTag| is not an empty string, only the
// notification with the given tag will be considered. Will take ownership of
// the WebNotificationGetCallbacks object.
virtual void getNotifications(const WebString& filterTag,
WebServiceWorkerRegistration*,
WebNotificationGetCallbacks*) = 0;
......
......@@ -13,7 +13,8 @@
namespace blink {
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,
bool userVisibleOnly,
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