| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 }, | 154 }, |
| 155 | 155 |
| 156 /** | 156 /** |
| 157 * @override | 157 * @override |
| 158 * @param {string} workerId | 158 * @param {string} workerId |
| 159 * @param {string} message | 159 * @param {string} message |
| 160 */ | 160 */ |
| 161 dispatchMessage: function(workerId, message) | 161 dispatchMessage: function(workerId, message) |
| 162 { | 162 { |
| 163 this._manager._dispatchMessage(workerId, message); | 163 this._manager._dispatchMessage(workerId, message); |
| 164 }, |
| 165 |
| 166 /** |
| 167 * @override |
| 168 * @param {!Array.<!ServiceWorkerAgent.ServiceWorkerRegistration>} registrat
ions |
| 169 */ |
| 170 workerRegistrationUpdated: function(registrations) |
| 171 { |
| 172 //FIXME: implement this. |
| 173 }, |
| 174 |
| 175 /** |
| 176 * @override |
| 177 * @param {!Array.<!ServiceWorkerAgent.ServiceWorkerVersion>} versions |
| 178 */ |
| 179 workerVersionUpdated: function(versions) |
| 180 { |
| 181 //FIXME: implement this. |
| 182 }, |
| 183 |
| 184 /** |
| 185 * @override |
| 186 * @param {string} registrationId |
| 187 */ |
| 188 workerRegistrationDeleted: function(registrationId) |
| 189 { |
| 190 //FIXME: implement this. |
| 164 } | 191 } |
| 165 } | 192 } |
| 166 | 193 |
| 167 /** | 194 /** |
| 168 * @constructor | 195 * @constructor |
| 169 * @extends {InspectorBackendClass.Connection} | 196 * @extends {InspectorBackendClass.Connection} |
| 170 * @param {!WebInspector.ServiceWorkerManager} serviceWorkerManager | 197 * @param {!WebInspector.ServiceWorkerManager} serviceWorkerManager |
| 171 * @param {string} workerId | 198 * @param {string} workerId |
| 172 */ | 199 */ |
| 173 WebInspector.ServiceWorkerConnection = function(serviceWorkerManager, workerId) | 200 WebInspector.ServiceWorkerConnection = function(serviceWorkerManager, workerId) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 189 this._agent.sendMessage(this._workerId, JSON.stringify(messageObject)); | 216 this._agent.sendMessage(this._workerId, JSON.stringify(messageObject)); |
| 190 }, | 217 }, |
| 191 | 218 |
| 192 _close: function() | 219 _close: function() |
| 193 { | 220 { |
| 194 this.connectionClosed("worker_terminated"); | 221 this.connectionClosed("worker_terminated"); |
| 195 }, | 222 }, |
| 196 | 223 |
| 197 __proto__: InspectorBackendClass.Connection.prototype | 224 __proto__: InspectorBackendClass.Connection.prototype |
| 198 } | 225 } |
| OLD | NEW |