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

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

Issue 2417703006: DevTools: introduce a stub for the new audits panel (behind experiment). (Closed)
Patch Set: missing file added. Created 4 years, 2 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
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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 this._tempFile = null; 386 this._tempFile = null;
387 } 387 }
388 } 388 }
389 389
390 /** 390 /**
391 * @return {!Promise.<undefined>} 391 * @return {!Promise.<undefined>}
392 */ 392 */
393 WebInspector.TempFile.ensureTempStorageCleared = function() 393 WebInspector.TempFile.ensureTempStorageCleared = function()
394 { 394 {
395 if (!WebInspector.TempFile._storageCleanerPromise) { 395 if (!WebInspector.TempFile._storageCleanerPromise) {
396 WebInspector.TempFile._storageCleanerPromise = WebInspector.serviceManag er.createWorkerService("utility_shared_worker", "TempStorage", true).then(servic e => { 396 WebInspector.TempFile._storageCleanerPromise = WebInspector.serviceManag er.createAppService("utility_shared_worker", "TempStorage", true).then(service = > {
397 if (service) 397 if (service)
398 return service.send("clear"); 398 return service.send("clear");
399 }); 399 });
400 } 400 }
401 return WebInspector.TempFile._storageCleanerPromise; 401 return WebInspector.TempFile._storageCleanerPromise;
402 } 402 }
403 403
404 /** 404 /**
405 * @constructor 405 * @constructor
406 * @implements {WebInspector.BackingStorage} 406 * @implements {WebInspector.BackingStorage}
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 545
546 /** 546 /**
547 * @param {!WebInspector.OutputStream} outputStream 547 * @param {!WebInspector.OutputStream} outputStream
548 * @param {!WebInspector.OutputStreamDelegate} delegate 548 * @param {!WebInspector.OutputStreamDelegate} delegate
549 */ 549 */
550 writeToStream: function(outputStream, delegate) 550 writeToStream: function(outputStream, delegate)
551 { 551 {
552 this._file.copyToOutputStream(outputStream, delegate); 552 this._file.copyToOutputStream(outputStream, delegate);
553 } 553 }
554 } 554 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698