| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 var fileCopyManagerWrapper = null; | 5 var fileCopyManagerWrapper = null; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * While FileCopyManager is run in the background page, this class is used to | 8 * While FileCopyManager is run in the background page, this class is used to |
| 9 * communicate with it. | 9 * communicate with it. |
| 10 * @param {DirectoryEntry} root Root directory entry. |
| 10 * @constructor | 11 * @constructor |
| 11 * @param {DirectoryEntry} root Root directory entry. | |
| 12 */ | 12 */ |
| 13 function FileCopyManagerWrapper(root) { | 13 function FileCopyManagerWrapper(root) { |
| 14 this.root_ = root; | 14 this.root_ = root; |
| 15 | 15 |
| 16 this.status_ = { | 16 this.status_ = { |
| 17 pendingItems: 0, | 17 pendingItems: 0, |
| 18 pendingFiles: 0, | 18 pendingFiles: 0, |
| 19 pendingDirectories: 0, | 19 pendingDirectories: 0, |
| 20 pendingBytes: 0, | 20 pendingBytes: 0, |
| 21 | 21 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 }); | 122 }); |
| 123 }; | 123 }; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 FileCopyManagerWrapper.decorateAsyncMethod('requestCancel'); | 126 FileCopyManagerWrapper.decorateAsyncMethod('requestCancel'); |
| 127 FileCopyManagerWrapper.decorateAsyncMethod('paste'); | 127 FileCopyManagerWrapper.decorateAsyncMethod('paste'); |
| 128 FileCopyManagerWrapper.decorateAsyncMethod('deleteEntries'); | 128 FileCopyManagerWrapper.decorateAsyncMethod('deleteEntries'); |
| 129 FileCopyManagerWrapper.decorateAsyncMethod('forceDeleteTask'); | 129 FileCopyManagerWrapper.decorateAsyncMethod('forceDeleteTask'); |
| 130 FileCopyManagerWrapper.decorateAsyncMethod('cancelDeleteTask'); | 130 FileCopyManagerWrapper.decorateAsyncMethod('cancelDeleteTask'); |
| 131 FileCopyManagerWrapper.decorateAsyncMethod('zipSelection'); | 131 FileCopyManagerWrapper.decorateAsyncMethod('zipSelection'); |
| OLD | NEW |