WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
165562
Move FileHandle to WebCore FileHandle.h
https://bugs.webkit.org/show_bug.cgi?id=165562
Summary
Move FileHandle to WebCore FileHandle.h
Keith Rollin
Reported
2016-12-07 16:20:01 PST
Bug 164527
introduces a FileHandle class into WebKit2/NetworkProcess. This should be moved to WebCore. While doing this, we should consider what this class should actually be. Should is just be a C++ wrapper around the plain functionality in FileSystem.h? Or should it provide more?
Attachments
Patch
(32.69 KB, patch)
2016-12-07 23:31 PST
,
Keith Rollin
no flags
Details
Formatted Diff
Diff
Patch
(32.26 KB, patch)
2016-12-08 12:31 PST
,
Keith Rollin
no flags
Details
Formatted Diff
Diff
Patch
(32.37 KB, patch)
2016-12-08 13:14 PST
,
Keith Rollin
no flags
Details
Formatted Diff
Diff
Patch
(32.40 KB, patch)
2016-12-08 13:50 PST
,
Keith Rollin
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Keith Rollin
Comment 1
2016-12-07 23:31:56 PST
Created
attachment 296498
[details]
Patch
Alex Christensen
Comment 2
2016-12-08 10:40:01 PST
Comment on
attachment 296498
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=296498&action=review
> Source/WebCore/platform/FileHandle.cpp:40 > + , m_fileHandle(invalidPlatformFileHandle)
This isn't necessary because of the initializer list in the header.
> Source/WebCore/platform/FileHandle.cpp:47 > + , m_fileHandle(invalidPlatformFileHandle)
I think this is confusing. Maybe we should = delete this constructor.
> Source/WebCore/platform/FileHandle.cpp:69 > + m_fileHandle = invalidPlatformFileHandle;
ditto
Keith Rollin
Comment 3
2016-12-08 10:51:58 PST
(In reply to
comment #2
)
> > Source/WebCore/platform/FileHandle.cpp:47 > > + , m_fileHandle(invalidPlatformFileHandle) > > I think this is confusing. Maybe we should = delete this constructor. > > > Source/WebCore/platform/FileHandle.cpp:69 > > + m_fileHandle = invalidPlatformFileHandle; > > ditto
Heh. I concur. I originally had them "= delete", but tried adding them into this version in the interests of completeness.
Keith Rollin
Comment 4
2016-12-08 12:31:47 PST
Created
attachment 296547
[details]
Patch
Keith Rollin
Comment 5
2016-12-08 13:14:52 PST
Created
attachment 296555
[details]
Patch
Keith Rollin
Comment 6
2016-12-08 13:50:13 PST
Created
attachment 296562
[details]
Patch
WebKit Commit Bot
Comment 7
2016-12-08 16:57:18 PST
Comment on
attachment 296562
[details]
Patch Clearing flags on attachment: 296562 Committed
r209583
: <
http://trac.webkit.org/changeset/209583
>
WebKit Commit Bot
Comment 8
2016-12-08 16:57:22 PST
All reviewed patches have been landed. Closing bug.
Ryan Haddad
Comment 9
2016-12-08 17:49:13 PST
This change appears to have broken the Windows build:
https://build.webkit.org/builders/Apple%20Win%20Release%20%28Build%29/builds/82532
C:\cygwin\home\buildbot\slave\win-release\build\Source\WebCore\platform\FileHandle.cpp(107): error C3861: 'vasprintf': identifier not found [C:\cygwin\home\buildbot\slave\win-release\build\WebKitBuild\Release\Source\WebCore\WebCore.vcxproj]
Keith Rollin
Comment 10
2016-12-08 18:18:32 PST
OK, I'll fix it if you haven't already rolled it out.
Keith Rollin
Comment 11
2016-12-08 18:57:58 PST
Fixed in
Bug 165642
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug