| Index: Source/devtools/front_end/sdk/ServiceWorkerManager.js
|
| diff --git a/Source/devtools/front_end/sdk/ServiceWorkerManager.js b/Source/devtools/front_end/sdk/ServiceWorkerManager.js
|
| index bb8c6c4f61aabfc76c5fb210683e3c3676f49e43..dffa436b84c5f0c29c90b8c6f28b520f7a4c7772 100644
|
| --- a/Source/devtools/front_end/sdk/ServiceWorkerManager.js
|
| +++ b/Source/devtools/front_end/sdk/ServiceWorkerManager.js
|
| @@ -137,6 +137,19 @@ WebInspector.ServiceWorkerManager.prototype = {
|
| this._unregister(registration.scopeURL);
|
| },
|
|
|
| + /**
|
| + * @param {string} registrationId
|
| + * @param {string} data
|
| + */
|
| + deliverPushMessage: function(registrationId, data)
|
| + {
|
| + var registration = this._registrations.get(registrationId);
|
| + if (!registration)
|
| + return;
|
| + var origin = WebInspector.ParsedURL.splitURLIntoPathComponents(registration.scopeURL)[0];
|
| + this._agent.deliverPushMessage(origin, registrationId, data);
|
| + },
|
| +
|
| /**
|
| * @param {string} scope
|
| */
|
|
|