RESOLVED FIXED 107920
[EFL][WK2] Use C API inside ewk_database_manager and ewk_storage_manager
https://bugs.webkit.org/show_bug.cgi?id=107920
Summary [EFL][WK2] Use C API inside ewk_database_manager and ewk_storage_manager
Chris Dumez
Reported 2013-01-24 23:22:21 PST
As per Bug 107657, we should start using the C API internally to avoid violating layering.
Attachments
Patch (8.00 KB, patch)
2013-01-24 23:48 PST, Chris Dumez
no flags
Chris Dumez
Comment 1 2013-01-24 23:48:43 PST
Gyuyoung Kim
Comment 2 2013-01-25 22:48:48 PST
Comment on attachment 184682 [details] Patch LGTM,
Benjamin Poulain
Comment 3 2013-01-25 23:09:56 PST
Comment on attachment 184682 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=184682&action=review This looks correct to me too. Just one question: > Source/WebKit2/UIProcess/API/efl/ewk_context.cpp:70 > EwkContext::EwkContext(PassRefPtr<WebContext> context) > : m_context(context) > - , m_databaseManager(EwkDatabaseManager::create(m_context)) > - , m_storageManager(EwkStorageManager::create(m_context)) > + , m_databaseManager(EwkDatabaseManager::create(WKContextGetDatabaseManager(toAPI(m_context.get())))) > + , m_storageManager(EwkStorageManager::create(WKContextGetKeyValueStorageManager(toAPI(m_context.get())))) It is disturbing the constructor takes a WebContext. Can you give some ... context :) ... why is it done this way?
Chris Dumez
Comment 4 2013-01-25 23:49:24 PST
Comment on attachment 184682 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=184682&action=review >> Source/WebKit2/UIProcess/API/efl/ewk_context.cpp:70 >> + , m_storageManager(EwkStorageManager::create(WKContextGetKeyValueStorageManager(toAPI(m_context.get())))) > > It is disturbing the constructor takes a WebContext. Can you give some ... context :) ... why is it done this way? Yes, this is temporary until EwkContext is ported to the C API. This will be addressed in Bug 107666. We are going incrementally.
Benjamin Poulain
Comment 5 2013-01-25 23:55:38 PST
Comment on attachment 184682 [details] Patch > Yes, this is temporary until EwkContext is ported to the C API. This will be addressed in Bug 107666. We are going incrementally. Okay. The patch looks great otherwise, let's land this.
WebKit Review Bot
Comment 6 2013-01-26 00:01:05 PST
Comment on attachment 184682 [details] Patch Clearing flags on attachment: 184682 Committed r140905: <http://trac.webkit.org/changeset/140905>
WebKit Review Bot
Comment 7 2013-01-26 00:01:11 PST
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.