| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2016 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 /** |
| 6 * @constructor |
| 7 * @implements {Service} |
| 8 */ |
| 9 function Audits2Service() |
| 10 { |
| 11 } |
| 12 |
| 13 Audits2Service.prototype = { |
| 14 /** |
| 15 * @return {!Promise} |
| 16 */ |
| 17 start: function() |
| 18 { |
| 19 console.error("WORKER START"); |
| 20 return Promise.resolve(); |
| 21 }, |
| 22 |
| 23 /** |
| 24 * @return {!Promise} |
| 25 */ |
| 26 stop: function() |
| 27 { |
| 28 console.error("WORKER STOP"); |
| 29 return Promise.resolve(); |
| 30 }, |
| 31 |
| 32 /** |
| 33 * @override |
| 34 */ |
| 35 dispose: function() |
| 36 { |
| 37 console.error("WORKER DISPOSE"); |
| 38 } |
| 39 } |
| 40 |
| 41 initializeWorkerService("Audits2Service", Audits2Service); |
| OLD | NEW |