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

Issue 12026008: Add ReadEntries interface for PPB_DirectoryReader (won't commit) (Closed)

Created:
7 years, 11 months ago by nhiroki
Modified:
7 years, 10 months ago
CC:
chromium-reviews, kinuko, tzik, darin (slow to review)
Visibility:
Public.

Description

Add ReadEntries interface for PPB_DirectoryReader I won't commit this CL since this is just for API discussion. BUG=113086

Patch Set 1 #

Patch Set 2 : run generator #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -22 lines) Patch
M ppapi/api/dev/ppb_directory_reader_dev.idl View 2 chunks +19 lines, -1 line 2 comments Download
M ppapi/c/dev/ppb_directory_reader_dev.h View 1 4 chunks +23 lines, -18 lines 0 comments Download
M ppapi/c/pp_macros.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 6 chunks +37 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
nhiroki
This is just proposal for adding new API. Could you review this and give us ...
7 years, 11 months ago (2013-01-18 05:00:30 UTC) #1
brettw
I'll defer my review to dmichael.
7 years, 11 months ago (2013-01-18 05:06:30 UTC) #2
darin (slow to review)
https://codereview.chromium.org/12026008/diff/1002/ppapi/api/dev/ppb_directory_reader_dev.idl File ppapi/api/dev/ppb_directory_reader_dev.idl (right): https://codereview.chromium.org/12026008/diff/1002/ppapi/api/dev/ppb_directory_reader_dev.idl#newcode67 ppapi/api/dev/ppb_directory_reader_dev.idl:67: [in] PP_ArrayOutput output, Most operating systems don't provide APIs ...
7 years, 11 months ago (2013-01-18 06:26:19 UTC) #3
brettw
There was some discussion on the thread titled "Does anything use PPB_DirectoryReader_Dev" Brett On Thu, ...
7 years, 11 months ago (2013-01-18 07:12:59 UTC) #4
dmichael (off chromium)
On 2013/01/18 07:12:59, brettw wrote: > There was some discussion on the thread titled "Does ...
7 years, 11 months ago (2013-01-18 16:59:47 UTC) #5
dmichael (off chromium)
https://codereview.chromium.org/12026008/diff/1002/ppapi/api/dev/ppb_directory_reader_dev.idl File ppapi/api/dev/ppb_directory_reader_dev.idl (right): https://codereview.chromium.org/12026008/diff/1002/ppapi/api/dev/ppb_directory_reader_dev.idl#newcode52 ppapi/api/dev/ppb_directory_reader_dev.idl:52: [in] PP_CompletionCallback callback); Since nobody is using this API ...
7 years, 11 months ago (2013-01-18 17:10:18 UTC) #6
darin (slow to review)
Imagine enumerating the files on a network share. An app might like to incrementally render ...
7 years, 11 months ago (2013-01-18 19:27:00 UTC) #7
brettw
I don't disagree that the incremental approach is theoretically better. My concern was practical: just ...
7 years, 11 months ago (2013-01-18 20:20:55 UTC) #8
darin (slow to review)
That makes a lot of sense. Last shot by me: I suppose we could also ...
7 years, 11 months ago (2013-01-18 21:26:30 UTC) #9
brettw
If we're guaranteed that everybody either writes their code properly to handle the case that ...
7 years, 11 months ago (2013-01-18 21:33:31 UTC) #10
dmichael (off chromium)
On Fri, Jan 18, 2013 at 2:33 PM, Brett Wilson <brettw@chromium.org> wrote: > If we're ...
7 years, 11 months ago (2013-01-18 21:55:10 UTC) #11
nhiroki
Thank you for a lot of comments. Could we start to implement new API? There's ...
7 years, 11 months ago (2013-01-24 04:44:14 UTC) #12
darin (slow to review)
I'm supportive. What convinced me was the argument that GetNextEntry really isn't the ideal interface ...
7 years, 11 months ago (2013-01-24 09:19:24 UTC) #13
yzshen1
One more thing about GetNextEntry(): (not quite sure whether others have mentioned it elsewhere.) Unless ...
7 years, 11 months ago (2013-01-24 19:16:13 UTC) #14
dmichael (off chromium)
7 years, 11 months ago (2013-01-24 20:08:26 UTC) #15
On 2013/01/24 09:19:24, darin wrote:
> I'm supportive.  What convinced me was the argument that GetNextEntry
> really isn't the ideal interface for people who like to use non-optional
> callbacks.  Instead, we'd want some interface that delivers arrays of
> entries, so that callbacks are generated per chunk.
> 
> The original interface was designed back before non-optional callbacks
> existed.
> 
> -Darin
Sure, sounds good to me too. The API is so much easier to get right this way,
it's probably worth the risk. If it is ever a performance problem, we can start
capping the number of files you get from this API or something.

If you want to check this in before implementing it, you can do that...  just
get rid of the old version of the API from the IDL first.

Powered by Google App Engine
This is Rietveld 408576698