| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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 // Namespace |
| 6 var importer; |
| 7 |
| 8 importer.MediaImportHandler; |
| 9 |
| 10 /** |
| 11 * Note that this isn't an actual FileOperationManager.Task. It currently uses |
| 12 * the FileOperationManager (and thus *spawns* an associated |
| 13 * FileOperationManager.CopyTask) but this is a temporary state of affairs. |
| 14 * |
| 15 * @constructor |
| 16 * @struct |
| 17 */ |
| 18 importer.MediaImportHandler.ImportTask = function() {}; |
| 19 |
| 20 /** @struct */ |
| 21 importer.MediaImportHandler.ImportTask.prototype = { |
| 22 /** @return {!Promise} Resolves when task |
| 23 is complete, or cancelled, rejects on error. */ |
| 24 get whenFinished() {} |
| 25 }; |
| 26 |
| 27 /** |
| 28 * Request cancellation of this task. An update will be sent to observers once |
| 29 * the task is actually cancelled. |
| 30 */ |
| 31 importer.MediaImportHandler.ImportTask.prototype.requestCancel = function() {}; |
| OLD | NEW |