Commit 30128b70 authored by hirono's avatar hirono Committed by Commit bot

Fix annottation of FileEntry to Entry.

Previously new metadata related codes use FileEntry as an input type in the
annotation, but it should be Entry because they can take DirectoryEntry also.

BUG=410766
TEST=None

Review URL: https://codereview.chromium.org/897573003

Cr-Commit-Position: refs/heads/master@{#314993}
parent 940e7a01
......@@ -42,7 +42,7 @@ function FileSystemMetadata(
/**
* Obtains metadata for entries.
* @param {!Array<!FileEntry>} entries Entries.
* @param {!Array<!Entry>} entries Entries.
* @param {!Array<string>} names Metadata property names to be obtained.
* @return {!Promise<!Array<!ExternalMetadataProperties>>}
*/
......@@ -83,7 +83,7 @@ FileSystemMetadata.prototype.get = function(entries, names) {
/**
* Obtains metadata cache for entries.
* @param {!Array<!FileEntry>} entries Entries.
* @param {!Array<!Entry>} entries Entries.
* @param {!Array<string>} names Metadata property names to be obtained.
* @return {!Array<!ExternalMetadataProperties>}
*/
......@@ -93,7 +93,7 @@ FileSystemMetadata.prototype.getCache = function(entries, names) {
/**
* Clears old metadata for newly created entries.
* @param {!Array<!FileEntry>} entries
* @param {!Array<!Entry>} entries
*/
FileSystemMetadata.prototype.notifyEntryCreated = function(entries) {
this.cache_.clear(entries);
......
......@@ -19,7 +19,7 @@ function MetadataCacheSet(items) {
/**
* Creates list of MetadataRequest based on the cache state.
* @param {!Array<!FileEntry>} entries
* @param {!Array<!Entry>} entries
* @param {!Array<string>} names
* @return {!Array<!MetadataRequest>}
*/
......@@ -56,7 +56,7 @@ MetadataCacheSet.prototype.startRequests = function(requestId, requests) {
* Stores results from NewMetadataProvider with the request Id.
* @param {number} requestId Request ID. If a newer operation has already been
* done, the results must be ingored.
* @param {!Array<!FileEntry>} entries
* @param {!Array<!Entry>} entries
* @param {!Array<!Object>} results
* @return {boolean} Whether at least one result is stored or not.
*/
......@@ -75,7 +75,7 @@ MetadataCacheSet.prototype.storeProperties = function(
/**
* Obtains cached properties for entries and names.
* Note that it returns invalidated properties also.
* @param {!Array<!FileEntry>} entries Entries.
* @param {!Array<!Entry>} entries Entries.
* @param {!Array<string>} names Property names.
*/
MetadataCacheSet.prototype.get = function(entries, names) {
......@@ -92,7 +92,7 @@ MetadataCacheSet.prototype.get = function(entries, names) {
* time of startRequests.
* @param {number} requestId Request ID of the invalidation request. This must
* be larger than other requets ID passed to the set before.
* @param {!Array<!FileEntry>} entries
* @param {!Array<!Entry>} entries
*/
MetadataCacheSet.prototype.invalidate = function(requestId, entries) {
for (var i = 0; i < entries.length; i++) {
......@@ -104,7 +104,7 @@ MetadataCacheSet.prototype.invalidate = function(requestId, entries) {
/**
* Clears the caches of entries.
* @param {!Array<!FileEntry>} entries
* @param {!Array<!Entry>} entries
*/
MetadataCacheSet.prototype.clear = function(entries) {
for (var i = 0; i < entries.length; i++) {
......@@ -114,7 +114,7 @@ MetadataCacheSet.prototype.clear = function(entries) {
/**
* Creates snapshot of the cache for entries.
* @param {!Array<!FileEntry>} entries
* @param {!Array<!Entry>} entries
*/
MetadataCacheSet.prototype.createSnapshot = function(entries) {
var items = {};
......@@ -129,7 +129,7 @@ MetadataCacheSet.prototype.createSnapshot = function(entries) {
/**
* Returns whether all the given properties are fulfilled.
* @param {!Array<!FileEntry>} entries Entries.
* @param {!Array<!Entry>} entries Entries.
* @param {!Array<string>} names Property names.
* @return {boolean}
*/
......@@ -260,14 +260,14 @@ MetadataCacheSetStorageForLRUCache.prototype.remove = function(url) {
};
/**
* @param {!FileEntry} entry Entry
* @param {!Entry} entry Entry
* @param {!Array<string>} names Property name list to be requested.
* @constructor
* @struct
*/
function MetadataRequest(entry, names) {
/**
* @public {!FileEntry}
* @public {!Entry}
* @const
*/
this.entry = entry;
......
......@@ -45,7 +45,7 @@ NewMetadataProvider.prototype.getImpl;
/**
* Obtains metadata for entries.
* @param {!Array<!FileEntry>} entries Entries.
* @param {!Array<!Entry>} entries Entries.
* @param {!Array<string>} names Metadata property names to be obtained.
* @return {!Promise<!Array<!T>>}
*/
......@@ -116,7 +116,7 @@ NewMetadataProvider.prototype.get = function(entries, names) {
/**
* Obtains metadata cache for entries.
* @param {!Array<!FileEntry>} entries Entries.
* @param {!Array<!Entry>} entries Entries.
* @param {!Array<string>} names Metadata property names to be obtained.
* @return {!Array<!T>}
*/
......@@ -125,7 +125,7 @@ NewMetadataProvider.prototype.getCache = function(entries, names) {
};
/**
* @param {!Array<!FileEntry>} entries
* @param {!Array<!Entry>} entries
* @param {!Array<string>} names
* @param {!MetadataCacheSet} cache
* @param {function(!T):undefined} fulfill
......@@ -137,7 +137,7 @@ NewMetadataProvider.prototype.getCache = function(entries, names) {
function MetadataProviderCallbackRequest(
entries, names, cache, fulfill, reject) {
/**
* @private {!Array<!FileEntry>}
* @private {!Array<!Entry>}
* @const
*/
this.entries_ = entries;
......@@ -171,7 +171,7 @@ function MetadataProviderCallbackRequest(
* Stores properties to snapshot cache of the callback request.
* If all the requested property are served, it invokes the callback.
* @param {number} requestId
* @param {!Array<!FileEntry>} entries
* @param {!Array<!Entry>} entries
* @param {!Array<!Object>} objects
* @return {boolean} Whether the callback is invoked or not.
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment