OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 'use strict'; | |
6 | |
7 /** | 5 /** |
8 * Persistent cache storing images in an indexed database on the hard disk. | 6 * Persistent cache storing images in an indexed database on the hard disk. |
9 * @constructor | 7 * @constructor |
10 */ | 8 */ |
11 function Cache() { | 9 function Cache() { |
12 /** | 10 /** |
13 * IndexedDB database handle. | 11 * IndexedDB database handle. |
14 * @type {IDBDatabase} | 12 * @type {IDBDatabase} |
15 * @private | 13 * @private |
16 */ | 14 */ |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 metadataReceived = true; | 399 metadataReceived = true; |
402 onPartialSuccess(); | 400 onPartialSuccess(); |
403 }; | 401 }; |
404 | 402 |
405 metadataRequest.onerror = function() { | 403 metadataRequest.onerror = function() { |
406 console.error('Failed to remove an image.'); | 404 console.error('Failed to remove an image.'); |
407 metadataReceived = true; | 405 metadataReceived = true; |
408 onPartialSuccess(); | 406 onPartialSuccess(); |
409 }; | 407 }; |
410 }; | 408 }; |
OLD | NEW |