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

Side by Side Diff: Source/devtools/front_end/HeapSnapshotView.js

Issue 136793008: Clear DevTools temp storage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 { 1284 {
1285 if (this._receiver) 1285 if (this._receiver)
1286 this._receiver.close(); 1286 this._receiver.close();
1287 else if (this._snapshotProxy) 1287 else if (this._snapshotProxy)
1288 this._snapshotProxy.dispose(); 1288 this._snapshotProxy.dispose();
1289 if (this._view) { 1289 if (this._view) {
1290 var view = this._view; 1290 var view = this._view;
1291 this._view = null; 1291 this._view = null;
1292 view.dispose(); 1292 view.dispose();
1293 } 1293 }
1294 this.removeTempFile();
1294 }, 1295 },
1295 1296
1296 _updateSubtitle: function(value) 1297 _updateSubtitle: function(value)
1297 { 1298 {
1298 this.sidebarElement.subtitle = value; 1299 this.sidebarElement.subtitle = value;
1299 }, 1300 },
1300 1301
1301 _didCompleteSnapshotTransfer: function() 1302 _didCompleteSnapshotTransfer: function()
1302 { 1303 {
1303 this.sidebarElement.subtitle = Number.bytesToString(this._snapshotProxy. totalSize); 1304 this.sidebarElement.subtitle = Number.bytesToString(this._snapshotProxy. totalSize);
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 zeroTime: function() 1924 zeroTime: function()
1924 { 1925 {
1925 return this._minimumBoundaries; 1926 return this._minimumBoundaries;
1926 }, 1927 },
1927 1928
1928 boundarySpan: function() 1929 boundarySpan: function()
1929 { 1930 {
1930 return this._maximumBoundaries - this._minimumBoundaries; 1931 return this._maximumBoundaries - this._minimumBoundaries;
1931 } 1932 }
1932 } 1933 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698