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

Issue 16813006: Make Directory.list pull-based, making it possible to pause, resume and cancel directory listing. (Closed)

Created:
7 years, 6 months ago by Anders Johnsen
Modified:
7 years, 6 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make Directory.list pull-based, making it possible to pause, resume and cancel directory listing. BUG=https://code.google.com/p/dart/issues/detail?id=10163, R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=24074

Patch Set 1 #

Patch Set 2 : Cleanu p code. #

Patch Set 3 : Make it compile again. #

Patch Set 4 : Make the code more Windows-friendly. #

Total comments: 16

Patch Set 5 : Add Windows implementation and review fixes. #

Patch Set 6 : Macos and Android version. #

Total comments: 10

Patch Set 7 : Add test and review fixes. #

Total comments: 16

Patch Set 8 : Review update. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+948 lines, -926 lines) Patch
M runtime/bin/directory.h View 1 2 3 4 5 6 7 4 chunks +186 lines, -14 lines 0 comments Download
M runtime/bin/directory.cc View 1 2 3 4 5 6 7 5 chunks +121 lines, -43 lines 0 comments Download
M runtime/bin/directory_android.cc View 1 2 3 4 5 6 11 chunks +113 lines, -201 lines 0 comments Download
M runtime/bin/directory_linux.cc View 1 2 3 4 5 6 10 chunks +113 lines, -201 lines 0 comments Download
M runtime/bin/directory_macos.cc View 1 2 3 4 5 6 10 chunks +113 lines, -201 lines 0 comments Download
M runtime/bin/directory_win.cc View 1 2 3 4 5 6 13 chunks +121 lines, -199 lines 0 comments Download
M sdk/lib/io/directory_impl.dart View 1 2 3 4 5 6 7 4 chunks +137 lines, -67 lines 0 comments Download
A tests/standalone/io/directory_list_pause_test.dart View 1 2 3 4 5 6 7 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Anders Johnsen
7 years, 6 months ago (2013-06-12 11:37:49 UTC) #1
Søren Gjesse
Initial comments https://codereview.chromium.org/16813006/diff/4005/runtime/bin/directory.cc File runtime/bin/directory.cc (right): https://codereview.chromium.org/16813006/diff/4005/runtime/bin/directory.cc#newcode258 runtime/bin/directory.cc:258: Directory::List(dir_listing); You should just set the length ...
7 years, 6 months ago (2013-06-12 12:52:41 UTC) #2
Anders Johnsen
PTAL, now with Windows impl. https://codereview.chromium.org/16813006/diff/4005/runtime/bin/directory.cc File runtime/bin/directory.cc (right): https://codereview.chromium.org/16813006/diff/4005/runtime/bin/directory.cc#newcode258 runtime/bin/directory.cc:258: Directory::List(dir_listing); On 2013/06/12 12:52:41, ...
7 years, 6 months ago (2013-06-13 08:38:24 UTC) #3
Søren Gjesse
https://codereview.chromium.org/16813006/diff/16001/runtime/bin/directory.cc File runtime/bin/directory.cc (right): https://codereview.chromium.org/16813006/diff/16001/runtime/bin/directory.cc#newcode366 runtime/bin/directory.cc:366: bool AsyncDirectoryListing::NewResponse(Response type, char* arg) { How about calling ...
7 years, 6 months ago (2013-06-13 11:59:20 UTC) #4
Anders Johnsen
PTAL https://codereview.chromium.org/16813006/diff/16001/runtime/bin/directory.cc File runtime/bin/directory.cc (right): https://codereview.chromium.org/16813006/diff/16001/runtime/bin/directory.cc#newcode366 runtime/bin/directory.cc:366: bool AsyncDirectoryListing::NewResponse(Response type, char* arg) { On 2013/06/13 ...
7 years, 6 months ago (2013-06-13 14:38:25 UTC) #5
Søren Gjesse
LGTM! https://codereview.chromium.org/16813006/diff/20001/runtime/bin/directory.cc File runtime/bin/directory.cc (right): https://codereview.chromium.org/16813006/diff/20001/runtime/bin/directory.cc#newcode237 runtime/bin/directory.cc:237: reinterpret_cast<intptr_t>(dir_listing))); We should consider piggy-bagging the first next ...
7 years, 6 months ago (2013-06-17 06:37:47 UTC) #6
Søren Gjesse
Forgot one thing https://codereview.chromium.org/16813006/diff/20001/runtime/bin/directory.h File runtime/bin/directory.h (right): https://codereview.chromium.org/16813006/diff/20001/runtime/bin/directory.h#newcode53 runtime/bin/directory.h:53: Could you add a comment on ...
7 years, 6 months ago (2013-06-17 06:40:03 UTC) #7
Anders Johnsen
https://codereview.chromium.org/16813006/diff/20001/runtime/bin/directory.cc File runtime/bin/directory.cc (right): https://codereview.chromium.org/16813006/diff/20001/runtime/bin/directory.cc#newcode237 runtime/bin/directory.cc:237: reinterpret_cast<intptr_t>(dir_listing))); On 2013/06/17 06:37:47, Søren Gjesse wrote: > We ...
7 years, 6 months ago (2013-06-17 07:27:11 UTC) #8
Anders Johnsen
7 years, 6 months ago (2013-06-17 07:27:30 UTC) #9
Message was sent while issue was closed.
Committed patchset #8 manually as r24074 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698