WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
112571
[Chromium] Create WebFileSystemType enum to allow easier filesystem refactoring
https://bugs.webkit.org/show_bug.cgi?id=112571
Summary
[Chromium] Create WebFileSystemType enum to allow easier filesystem refactoring
Mark Pilgrim (Google)
Reported
2013-03-18 07:19:53 PDT
[Chromium] Create WebFileSystemType enum to allow easier filesystem refactoring
Attachments
WIP Patch
(22.57 KB, patch)
2013-03-18 07:22 PDT
,
Mark Pilgrim (Google)
no flags
Details
Formatted Diff
Diff
Patch
(27.40 KB, patch)
2013-03-18 10:51 PDT
,
Mark Pilgrim (Google)
no flags
Details
Formatted Diff
Diff
Patch
(27.55 KB, patch)
2013-03-18 11:01 PDT
,
Mark Pilgrim (Google)
no flags
Details
Formatted Diff
Diff
Patch
(31.45 KB, patch)
2013-03-18 12:22 PDT
,
Mark Pilgrim (Google)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Mark Pilgrim (Google)
Comment 1
2013-03-18 07:22:40 PDT
Created
attachment 193557
[details]
WIP Patch
Mark Pilgrim (Google)
Comment 2
2013-03-18 07:23:26 PDT
Comment on
attachment 193557
[details]
WIP Patch Pretty sure this will break Chromium build. Still working on it.
WebKit Review Bot
Comment 3
2013-03-18 07:25:58 PDT
Please wait for approval from
abarth@webkit.org
,
dglazkov@chromium.org
,
fishd@chromium.org
,
jamesr@chromium.org
or
tkent@chromium.org
before submitting, as this patch contains changes to the Chromium public API. See also
https://trac.webkit.org/wiki/ChromiumWebKitAPI
.
Mark Pilgrim (Google)
Comment 4
2013-03-18 10:24:58 PDT
Nope, this definitely needs to be behind a #define so we don't break Chromium.
Mark Pilgrim (Google)
Comment 5
2013-03-18 10:51:45 PDT
Created
attachment 193603
[details]
Patch
Mark Pilgrim (Google)
Comment 6
2013-03-18 10:52:57 PDT
Comment on
attachment 193603
[details]
Patch OK, this version puts all changes behind #ifdefs so we can make the changes in Chromium and then turn on everything at once.
Adam Barth
Comment 7
2013-03-18 10:54:56 PDT
Comment on
attachment 193603
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=193603&action=review
> Source/Platform/chromium/public/WebFileSystemType.h:35 > +// #define USE_NEW_WEBFILESYSTEMTYPE
USE_NEW_WEBFILESYSTEMTYPE -> WEBKIT_USE_NEW_WEBFILESYSTEMTYPE
> Source/WebKit/chromium/public/WebCommonWorkerClient.h:67 > +#ifdef USE_NEW_WEBFILESYSTEMTYPE > + virtual void openFileSystem(WebFileSystemType, long long size, bool create, WebFileSystemCallbacks*) > +#else > virtual void openFileSystem(WebFileSystem::Type, long long size, bool create, WebFileSystemCallbacks*) > +#endif
Can you use a typedef to avoid adding this ifdef everywhere?
Mark Pilgrim (Google)
Comment 8
2013-03-18 10:57:58 PDT
(In reply to
comment #7
)
> (From update of
attachment 193603
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=193603&action=review
> > > Source/Platform/chromium/public/WebFileSystemType.h:35 > > +// #define USE_NEW_WEBFILESYSTEMTYPE > > USE_NEW_WEBFILESYSTEMTYPE -> WEBKIT_USE_NEW_WEBFILESYSTEMTYPE
Grr.
> > Source/WebKit/chromium/public/WebCommonWorkerClient.h:67 > > +#ifdef USE_NEW_WEBFILESYSTEMTYPE > > + virtual void openFileSystem(WebFileSystemType, long long size, bool create, WebFileSystemCallbacks*) > > +#else > > virtual void openFileSystem(WebFileSystem::Type, long long size, bool create, WebFileSystemCallbacks*) > > +#endif > > Can you use a typedef to avoid adding this ifdef everywhere?
Couldn't figure it out. Enlisted help from several C++ gurus. Enums can't define casting operators, enum names don't match because of WebKit* prefixing. The whole mess will be resolved after one Chromium patch lands, so it's not really worth any more time trying to be clever.
Mark Pilgrim (Google)
Comment 9
2013-03-18 11:01:11 PDT
Created
attachment 193607
[details]
Patch
Mark Pilgrim (Google)
Comment 10
2013-03-18 11:01:45 PDT
Comment on
attachment 193607
[details]
Patch Now with WEBKIT_USE_NEW_WEBFILESYSTEMTYPE
Adam Barth
Comment 11
2013-03-18 11:53:17 PDT
Comment on
attachment 193607
[details]
Patch ok
Mark Pilgrim (Google)
Comment 12
2013-03-18 12:13:49 PDT
Comment on
attachment 193607
[details]
Patch Nope, turns out there's two more files (in DumpRenderTree) that need munging.
Mark Pilgrim (Google)
Comment 13
2013-03-18 12:22:20 PDT
Created
attachment 193627
[details]
Patch
Mark Pilgrim (Google)
Comment 14
2013-03-18 12:23:01 PDT
Comment on
attachment 193627
[details]
Patch Now with necessary DumpRenderTree changes.
WebKit Review Bot
Comment 15
2013-03-18 13:28:47 PDT
Comment on
attachment 193627
[details]
Patch Clearing flags on attachment: 193627 Committed
r146111
: <
http://trac.webkit.org/changeset/146111
>
WebKit Review Bot
Comment 16
2013-03-18 13:28:52 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.
Top of Page
Format For Printing
XML
Clone This Bug