OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 }, | 375 }, |
376 | 376 |
377 remove: function() | 377 remove: function() |
378 { | 378 { |
379 if (this._callsPendingOpen) { | 379 if (this._callsPendingOpen) { |
380 this._callsPendingOpen.push(this.remove.bind(this)); | 380 this._callsPendingOpen.push(this.remove.bind(this)); |
381 return; | 381 return; |
382 } | 382 } |
383 if (this._tempFile) | 383 if (this._tempFile) |
384 this._tempFile.remove(); | 384 this._tempFile.remove(); |
| 385 this._tempFile = null; |
385 } | 386 } |
386 } | 387 } |
387 | 388 |
388 /** | 389 /** |
389 * @param {function(?)} fulfill | 390 * @param {function(?)} fulfill |
390 * @param {function(*)} reject | 391 * @param {function(*)} reject |
391 */ | 392 */ |
392 WebInspector.TempFile._clearTempStorage = function(fulfill, reject) | 393 WebInspector.TempFile._clearTempStorage = function(fulfill, reject) |
393 { | 394 { |
394 /** | 395 /** |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 | 583 |
583 /** | 584 /** |
584 * @param {!WebInspector.OutputStream} outputStream | 585 * @param {!WebInspector.OutputStream} outputStream |
585 * @param {!WebInspector.OutputStreamDelegate} delegate | 586 * @param {!WebInspector.OutputStreamDelegate} delegate |
586 */ | 587 */ |
587 writeToStream: function(outputStream, delegate) | 588 writeToStream: function(outputStream, delegate) |
588 { | 589 { |
589 this._file.writeToOutputStream(outputStream, delegate); | 590 this._file.writeToOutputStream(outputStream, delegate); |
590 } | 591 } |
591 } | 592 } |
OLD | NEW |