We need to add the C API for WKNetworkInfoManager and WKNetworkInfo. We also need to add a C API function to WKContext to retrieve the NetworkInfo manager.
Created attachment 151219 [details] Patch
Comment on attachment 151219 [details] Patch Clearing flag until dependency lands and the patch is rebased.
Created attachment 152157 [details] Patch Rebase on master.
Comment on attachment 152157 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=152157&action=review > Source/WebKit2/UIProcess/API/C/WKNetworkInfo.cpp:31 > +#if ENABLE(NETWORK_INFO) It looks like toAPI() method is using when the macro is enabled. We can add macro for this include too. > Source/WebKit2/UIProcess/API/C/WKNetworkInfo.cpp:37 > +WK_EXPORT WKTypeID WKNetworkInfoGetTypeID() We can skip WK_EXPORT in cpp files. > Source/WebKit2/UIProcess/API/C/WKNetworkInfo.cpp:46 > +WK_EXPORT WKNetworkInfoRef WKNetworkInfoCreate(double bandwidth, bool isMetered) Ditto.
Created attachment 152160 [details] Patch Take Grzegorz's feedback into consideration.
Comment on attachment 152160 [details] Patch Attachment 152160 [details] did not pass gtk-ews (gtk): Output: http://queues.webkit.org/results/13202976
Comment on attachment 152160 [details] Patch Attachment 152160 [details] did not pass qt-wk2-ews (qt): Output: http://queues.webkit.org/results/13202000
Created attachment 152172 [details] Patch
Comment on attachment 152172 [details] Patch Looks good but maybe andersca wants to have a quick look
Comment on attachment 152172 [details] Patch Looks good to me too.
Unit tests?
Comment on attachment 152172 [details] Patch Clearing flags on attachment: 152172 Committed r123016: <http://trac.webkit.org/changeset/123016>
All reviewed patches have been landed. Closing bug.