Lines Matching refs:MetadataCache

8  * MetadataCache is a map from Entry to an object containing properties.
51 function MetadataCache(providers) {
97 MetadataCache.EXACT = 0;
103 MetadataCache.CHILDREN = 1;
109 MetadataCache.DESCENDANTS = 2;
114 MetadataCache.EVICTION_THRESHOLD_MARGIN = 500;
118 * @return {MetadataCache!} The cache with all providers.
120 MetadataCache.createFull = function(volumeManager) {
123 return new MetadataCache([
136 MetadataCache.cloneMetadata = function(metadata) {
140 result[index] = MetadataCache.cloneMetadata(metadata[index]);
151 result[property] = MetadataCache.cloneMetadata(metadata[property]);
162 MetadataCache.prototype.isInitialized = function() {
175 MetadataCache.prototype.resizeBy = function(delta) {
190 MetadataCache.prototype.currentEvictionThreshold_ = function() {
191 return this.currentCacheSize_ * 2 + MetadataCache.EVICTION_THRESHOLD_MARGIN;
203 MetadataCache.prototype.get = function(entries, type, callback) {
216 MetadataCache.prototype.getLatest = function(entries, type, callback) {
231 MetadataCache.prototype.getInternal_ =
269 MetadataCache.prototype.getOne = function(entry, type, callback) {
284 MetadataCache.prototype.getOneInternal_ =
386 MetadataCache.prototype.getCached = function(entry, type) {
401 MetadataCache.prototype.set = function(entries, type, values) {
426 MetadataCache.prototype.clear = function(entries, type) {
442 MetadataCache.prototype.clearByUrl = function(urls, type) {
465 MetadataCache.prototype.clearRecursively = function(entry, type) {
489 * See comments to |MetadataCache.EXACT| and others.
495 MetadataCache.prototype.addObserver = function(
499 if (relation === MetadataCache.CHILDREN)
501 else if (relation === MetadataCache.DESCENDANTS)
523 MetadataCache.prototype.removeObserver = function(id) {
536 MetadataCache.prototype.startBatchUpdates = function() {
545 MetadataCache.prototype.endBatchUpdates = function() {
576 MetadataCache.prototype.notifyObservers_ = function(entry, type) {
599 MetadataCache.prototype.evict_ = function() {
629 MetadataCache.prototype.createEmptyItem_ = function() {
643 MetadataCache.prototype.mergeProperties_ = function(entry, data) {
932 // Note that simultaneous requests for same url are handled in MetadataCache.
1083 if (MetadataCache.log) // Avoid log spam by default.
1097 if (MetadataCache.log) // Avoid log spam by default.