| 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 /** | 5 /** |
| 6 * Scanner of the entries. | 6 * Scanner of the entries. |
| 7 * @constructor | 7 * @constructor |
| 8 */ | 8 */ |
| 9 function ContentScanner() { | 9 function ContentScanner() { |
| 10 this.cancelled_ = false; | 10 this.cancelled_ = false; |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 this.metadataSnapshot_ = null; | 621 this.metadataSnapshot_ = null; |
| 622 } | 622 } |
| 623 | 623 |
| 624 /** | 624 /** |
| 625 * DirectoryContents extends cr.EventTarget. | 625 * DirectoryContents extends cr.EventTarget. |
| 626 */ | 626 */ |
| 627 DirectoryContents.prototype.__proto__ = cr.EventTarget.prototype; | 627 DirectoryContents.prototype.__proto__ = cr.EventTarget.prototype; |
| 628 | 628 |
| 629 /** | 629 /** |
| 630 * Create the copy of the object, but without scan started. | 630 * Create the copy of the object, but without scan started. |
| 631 * @return {DirectoryContents} Object copy. | 631 * @return {!DirectoryContents} Object copy. |
| 632 */ | 632 */ |
| 633 DirectoryContents.prototype.clone = function() { | 633 DirectoryContents.prototype.clone = function() { |
| 634 return new DirectoryContents( | 634 return new DirectoryContents( |
| 635 this.context_, | 635 this.context_, |
| 636 this.isSearch_, | 636 this.isSearch_, |
| 637 this.directoryEntry_, | 637 this.directoryEntry_, |
| 638 this.scannerFactory_); | 638 this.scannerFactory_); |
| 639 }; | 639 }; |
| 640 | 640 |
| 641 /** | 641 /** |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 DirectoryContents.createForDriveMetadataSearch = function( | 1053 DirectoryContents.createForDriveMetadataSearch = function( |
| 1054 context, fakeDirectoryEntry, searchType) { | 1054 context, fakeDirectoryEntry, searchType) { |
| 1055 return new DirectoryContents( | 1055 return new DirectoryContents( |
| 1056 context, | 1056 context, |
| 1057 true, // Search | 1057 true, // Search |
| 1058 fakeDirectoryEntry, | 1058 fakeDirectoryEntry, |
| 1059 function() { | 1059 function() { |
| 1060 return new DriveMetadataSearchContentScanner(searchType); | 1060 return new DriveMetadataSearchContentScanner(searchType); |
| 1061 }); | 1061 }); |
| 1062 }; | 1062 }; |
| OLD | NEW |