RESOLVED FIXED 135035
Clean up WKOriginDataManager and get it messaging to the DatabaseProcess
https://bugs.webkit.org/show_bug.cgi?id=135035
Summary Clean up WKOriginDataManager and get it messaging to the DatabaseProcess
Brady Eidson
Reported 2014-07-17 18:05:18 PDT
Clean up WKOriginDataManager and get it messaging to the DatabaseProcess First functional step of https://bugs.webkit.org/show_bug.cgi?id=135029
Attachments
Patch v1 (41.85 KB, patch)
2014-07-17 18:10 PDT, Brady Eidson
no flags
Patch v2 - Also added a new API we'll need very soon anyways (45.05 KB, patch)
2014-07-18 13:27 PDT, Brady Eidson
no flags
Patch v3 - Okay for real this time (44.44 KB, patch)
2014-07-18 13:46 PDT, Brady Eidson
sam: review+
Brady Eidson
Comment 1 2014-07-17 18:10:46 PDT
Created attachment 235104 [details] Patch v1
WebKit Commit Bot
Comment 2 2014-07-17 18:12:18 PDT
Attachment 235104 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.h:57: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.h:58: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.cpp:111: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.cpp:144: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 4 in 18 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brady Eidson
Comment 3 2014-07-18 09:42:46 PDT
(In reply to comment #2) > Attachment 235104 [details] did not pass style-queue: > > > ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.h:57: Extra space before ( in function call [whitespace/parens] [4] > ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.h:58: Extra space before ( in function call [whitespace/parens] [4] > ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.cpp:111: Extra space before ( in function call [whitespace/parens] [4] > ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.cpp:144: Extra space before ( in function call [whitespace/parens] [4] > Total errors found: 4 in 18 files > > These are the same old "check-webkit-style doesn't understand our style for C++ lambdas" which has been filed already
Brady Eidson
Comment 4 2014-07-18 13:27:34 PDT
Created attachment 235143 [details] Patch v2 - Also added a new API we'll need very soon anyways
WebKit Commit Bot
Comment 5 2014-07-18 13:29:33 PDT
Attachment 235143 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.h:57: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.h:58: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.h:59: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.cpp:111: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.cpp:138: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.cpp:171: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 6 in 18 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brady Eidson
Comment 6 2014-07-18 13:32:51 PDT
Comment on attachment 235143 [details] Patch v2 - Also added a new API we'll need very soon anyways NM this, v3 coming soon
Brady Eidson
Comment 7 2014-07-18 13:46:11 PDT
Created attachment 235145 [details] Patch v3 - Okay for real this time
WebKit Commit Bot
Comment 8 2014-07-18 13:47:26 PDT
Attachment 235145 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.h:57: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.h:58: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.h:59: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.cpp:111: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.cpp:138: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/WebOriginDataManagerProxy.cpp:166: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 6 in 18 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brady Eidson
Comment 9 2014-07-18 16:16:07 PDT
Comment on attachment 235145 [details] Patch v3 - Okay for real this time Nevermind... one more change. *sigh*
Brady Eidson
Comment 10 2014-07-18 16:50:35 PDT
NM, yes let's do it this way for now.
Tim Horton
Comment 11 2014-07-24 14:44:50 PDT
Comment on attachment 235145 [details] Patch v3 - Okay for real this time View in context: https://bugs.webkit.org/attachment.cgi?id=235145&action=review > Source/WebKit2/DatabaseProcess/DatabaseProcess.cpp:55 > + m_webOriginDataManager = std::make_unique<WebOriginDataManager>(this); why not in the initializer list? > Source/WebKit2/DatabaseProcess/DatabaseProcess.messages.in:25 > +messages -> DatabaseProcess LegacyReceiver { why are we adding *new* "Legacy" message receivers?
Brady Eidson
Comment 12 2014-07-24 15:45:14 PDT
(In reply to comment #11) > (From update of attachment 235145 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=235145&action=review > > > Source/WebKit2/DatabaseProcess/DatabaseProcess.cpp:55 > > + m_webOriginDataManager = std::make_unique<WebOriginDataManager>(this); > > why not in the initializer list? Leftover from an earlier iteration where it wasn't feasible for some reason. Will fix. > > Source/WebKit2/DatabaseProcess/DatabaseProcess.messages.in:25 > > +messages -> DatabaseProcess LegacyReceiver { > > why are we adding *new* "Legacy" message receivers? It appears that the only way to get your ChildProcessSupplements to have a chance at handling messages is to be a LegacyReceiver and have your custom didReceiveMessage check the messageReceiverMap() first. This is one reason why I really really want Anders to review this patch, because I can find no alternative, but if there is one he'd know.
Sam Weinig
Comment 13 2014-07-25 13:55:17 PDT
Comment on attachment 235145 [details] Patch v3 - Okay for real this time View in context: https://bugs.webkit.org/attachment.cgi?id=235145&action=review > Source/WebKit2/UIProcess/API/C/WKOriginDataManager.h:-78 > -typedef struct WKOriginDataManagerChangeClient { > - int version; > - const void * clientInfo; > - > - // Version 0. > - WKOriginDataManagerChangeCallback didChange; > -} WKOriginDataManagerChangeClient WK_DEPRECATED("Use an explicit versioned struct instead"); Why is it okay to get rid of this client?
Brady Eidson
Comment 14 2014-07-25 14:22:56 PDT
(In reply to comment #13) > (From update of attachment 235145 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=235145&action=review > > > Source/WebKit2/UIProcess/API/C/WKOriginDataManager.h:-78 > > -typedef struct WKOriginDataManagerChangeClient { > > - int version; > > - const void * clientInfo; > > - > > - // Version 0. > > - WKOriginDataManagerChangeCallback didChange; > > -} WKOriginDataManagerChangeClient WK_DEPRECATED("Use an explicit versioned struct instead"); > > Why is it okay to get rid of this client? It was never used outside the project, and we're not positive it needs to be around. It was never even used within the project - just a big no-op. It clutters up things right now, and can be brought back whenever it's actually needed and someone has time to make it actually do something.
Brady Eidson
Comment 15 2014-07-25 15:35:58 PDT
Note You need to log in before you can comment on or make changes to this bug.