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

Issue 178333009: Handle has_more correctly (Closed)

Created:
6 years, 9 months ago by hashimoto
Modified:
6 years, 9 months ago
Reviewers:
kinuko, tkent, haraken
CC:
blink-reviews, jamesr, tzik, nhiroki, abarth-chromium, kinuko, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Handle has_more correctly Return callbacksId from WebFileSystem::readDirectory(). Add WebFileSystem::waitForAdditionalResult(). Rewrite DirectoryReader and DirectoryReaderSync. BUG=347900 TEST=run_webkit_tests.sh http/tests/filesystem/\* TEST=run_webkit_tests.sh http/tests/inspector/filesystem/\* Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168780

Patch Set 1 : #

Patch Set 2 : ifdef hack #

Total comments: 10

Patch Set 3 : Add comments #

Total comments: 2

Patch Set 4 : Remove unneeded space #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -36 lines) Patch
M Source/modules/filesystem/DOMFileSystemBase.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/modules/filesystem/DOMFileSystemBase.cpp View 1 chunk +7 lines, -3 lines 0 comments Download
M Source/modules/filesystem/DirectoryReader.h View 1 2 3 1 chunk +13 lines, -0 lines 2 comments Download
M Source/modules/filesystem/DirectoryReader.cpp View 1 2 1 chunk +74 lines, -3 lines 0 comments Download
M Source/modules/filesystem/DirectoryReaderSync.h View 2 chunks +18 lines, -0 lines 0 comments Download
M Source/modules/filesystem/DirectoryReaderSync.cpp View 1 chunk +52 lines, -8 lines 0 comments Download
M Source/modules/filesystem/FileSystemCallbacks.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M Source/modules/filesystem/SyncCallbackHelper.h View 3 chunks +0 lines, -18 lines 0 comments Download
M public/platform/WebFileSystem.h View 1 2 3 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
hashimoto
6 years, 9 months ago (2014-03-06 11:56:39 UTC) #1
kinuko
lgtm https://codereview.chromium.org/178333009/diff/80001/Source/modules/filesystem/DirectoryReader.cpp File Source/modules/filesystem/DirectoryReader.cpp (right): https://codereview.chromium.org/178333009/diff/80001/Source/modules/filesystem/DirectoryReader.cpp#newcode70 Source/modules/filesystem/DirectoryReader.cpp:70: RefPtr<DirectoryReader> m_reader; So in the current impl this ...
6 years, 9 months ago (2014-03-06 13:13:37 UTC) #2
hashimoto
https://codereview.chromium.org/178333009/diff/80001/Source/modules/filesystem/DirectoryReader.cpp File Source/modules/filesystem/DirectoryReader.cpp (right): https://codereview.chromium.org/178333009/diff/80001/Source/modules/filesystem/DirectoryReader.cpp#newcode70 Source/modules/filesystem/DirectoryReader.cpp:70: RefPtr<DirectoryReader> m_reader; On 2014/03/06 13:13:38, kinuko wrote: > So ...
6 years, 9 months ago (2014-03-07 05:21:26 UTC) #3
hashimoto
tkent@, could you take a look at public/platform/WebFileSystem.h as an owner?
6 years, 9 months ago (2014-03-07 05:23:48 UTC) #4
tkent
public/platform lgtm
6 years, 9 months ago (2014-03-07 06:10:20 UTC) #5
tkent
https://codereview.chromium.org/178333009/diff/110001/Source/modules/filesystem/DirectoryReader.h File Source/modules/filesystem/DirectoryReader.h (right): https://codereview.chromium.org/178333009/diff/110001/Source/modules/filesystem/DirectoryReader.h#newcode69 Source/modules/filesystem/DirectoryReader.h:69: Vector<RefPtr<Entry> > m_entries; Too many spaces between > and ...
6 years, 9 months ago (2014-03-07 06:10:26 UTC) #6
hashimoto
btw, it seems I forgot to include the link for the corresponding chrome-side patch. (https://codereview.chromium.org/188533002/) ...
6 years, 9 months ago (2014-03-07 07:12:10 UTC) #7
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 9 months ago (2014-03-07 16:27:21 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/178333009/130001
6 years, 9 months ago (2014-03-07 16:27:37 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 16:28:54 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel
6 years, 9 months ago (2014-03-07 16:28:54 UTC) #11
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 9 months ago (2014-03-08 04:21:43 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/178333009/130001
6 years, 9 months ago (2014-03-08 04:21:49 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-08 09:33:07 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel
6 years, 9 months ago (2014-03-08 09:33:08 UTC) #15
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 9 months ago (2014-03-08 10:02:59 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/178333009/130001
6 years, 9 months ago (2014-03-08 10:04:37 UTC) #17
commit-bot: I haz the power
Change committed as 168780
6 years, 9 months ago (2014-03-08 10:48:18 UTC) #18
haraken
This CL was reverted in r168786 because it broke all oilpan builds. I fixed the ...
6 years, 9 months ago (2014-03-10 03:54:11 UTC) #19
hashimoto
6 years, 9 months ago (2014-03-10 04:46:14 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/178333009/diff/130001/Source/modules/filesyst...
File Source/modules/filesystem/DirectoryReader.h (right):

https://codereview.chromium.org/178333009/diff/130001/Source/modules/filesyst...
Source/modules/filesystem/DirectoryReader.h:70: RefPtr<FileError> m_error;
On 2014/03/10 03:54:12, haraken wrote:
> 
> Since FileError is on the oilpan heap, this should be
> RefPtrWillBePersistent<FileError>.

Thank you for the fix!

It seems that what I should have done is to look at FileError.h and follow the
class's inheritance chain until it reaches 
RefCountedWillBeGarbageCollectedFinalized, then look up the table at
http://www.chromium.org/blink/blink-gc.
Though it'd be even nicer if this could be caught by the compiler with something
like static assertions.

Powered by Google App Engine
This is Rietveld 408576698