Change callback APIs to include an Error object in one callback, instead of having a second callback for failure.
Created attachment 63513 [details]
Attachment 63513 [details] did not pass style-queue:
Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1
WebKit2/UIProcess/API/C/WKAPICast.h:79: More than one command on the same line [whitespace/newline] 
WebKit2/UIProcess/API/C/WKError.cpp:26: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] 
WebKit2/UIProcess/API/C/WKError.cpp:29: Alphabetical sorting problem. [build/include_order] 
Total errors found: 3 in 13 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 63513 [details]
> + RefPtr<WebError> error = WebError::create();
> + m_callback(0, toRef(error.release().releaseRef()), m_context);
This would require the reciever of the callback to adopt the error, which I don't think is what we want. Instead, this should just call error.get().
If you change this, r=me. Also, what Ada said.
Committed r64688: <http://trac.webkit.org/changeset/64688>