Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Side by Side Diff: Source/devtools/front_end/bindings/TempFile.js

Issue 1310343007: DevTools: fix 'Failed to write into a temp file' when recording a filmstrip (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/network/NetworkPanel.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/network/NetworkPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698