RESOLVED FIXED Bug 92390
Web Inspector: Profiles: cleanup HeapSnapshotReceiver interface
https://bugs.webkit.org/show_bug.cgi?id=92390
Summary Web Inspector: Profiles: cleanup HeapSnapshotReceiver interface
eustas.bug
Reported 2012-07-26 09:29:55 PDT
Remove callback parameter and return values from methods startLoading and finishLoading. All implementations of HeapSnapshotReceiver honestly override interface methods now.
Attachments
Patch (14.36 KB, patch)
2012-07-26 09:37 PDT, eustas.bug
no flags
eustas.bug
Comment 1 2012-07-26 09:37:57 PDT
Yury Semikhatsky
Comment 2 2012-07-31 06:32:40 PDT
Comment on attachment 154672 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=154672&action=review Is there a chance we have a test for this? > Source/WebCore/inspector/front-end/HeapSnapshotLoader.js:75 > + if (this._json) What's the reason for splitting this into two methods?
eustas.bug
Comment 3 2012-07-31 07:42:09 PDT
Comment on attachment 154672 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=154672&action=review These changes are covered with tests: see changed test file - it tests both HeapSnapshotLoader and HeapSnapshotLoaderProxy ("loading" file with HeapProfileHeader). >> Source/WebCore/inspector/front-end/HeapSnapshotLoader.js:75 >> + if (this._json) > > What's the reason for splitting this into two methods? To make HeapSnapshotLoader implement receiver interface. Practically we could remove @implements notation, leave this code in peace and declare that "proxy" in not clearly "proxy", but also "adapter"... But this way we would introduce one more entity instead of reducing inconsistency.
WebKit Review Bot
Comment 4 2012-08-01 00:54:01 PDT
Comment on attachment 154672 [details] Patch Clearing flags on attachment: 154672 Committed r124308: <http://trac.webkit.org/changeset/124308>
WebKit Review Bot
Comment 5 2012-08-01 00:54:05 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.