Source/WebKit/gtk/webkit/webkitdownload.cpp
guint64 webkit_download_get_total_size(WebKitDownload* download)
{
    g_return_val_if_fail(WEBKIT_IS_DOWNLOAD(download), 0);

    WebKitDownloadPrivate* priv = download->priv;
    SoupMessage* message = priv->networkResponse ? webkit_network_response_get_message(priv->networkResponse) : NULL;

    if (!message)
        return 0;

    return MAX(priv->currentSize, static_cast<guint64>(soup_message_headers_get_content_length(message->response_headers)));
}
/**
 * webkit_download_get_total_size:
 * @download: the #WebKitDownload
 *
 * Returns the expected total size of the download. This is expected
 * because the server may provide incorrect or missing
 * Content-Length. Notice that this may grow over time, as it will be
 * always the same as current_size in the cases where current size
 * surpasses it.
 *
 * Returns: the expected total size of the downloaded file
 *
 * Since: 1.1.2
 */


Returns the expected total size of the download. This is expected
because the server may provide incorrect or missing
Content-Length. Notice that this may grow over time, as it will be
always the same as current_size in the cases where current size
surpasses it.

the expected total size of the downloaded file


Returns the expected total size of the download . This is expected because the server may provide incorrect or missing Content - Length . Notice that this may grow over time as it will be always the same as current_size in the cases where current size surpasses it . the expected total size of the downloaded file
guint64 webkit_download_get_total_size(WebKitDownload* download)
{
    g_return_val_if_fail(WEBKIT_IS_DOWNLOAD(download), 0);
    WebKitDownloadPrivate* priv = download->priv;
    SoupMessage* message = priv->networkResponse ? webkit_network_response_get_message(priv->networkResponse) : NULL;
    if (!message)
        return 0;
    return MAX(priv->currentSize, static_cast<guint64>(soup_message_headers_get_content_length(message->response_headers)));
}
guint64 webkit_download_get_total_size ( WebKitDownload * download ) { g_return_val_if_fail ( WEBKIT_IS_DOWNLOAD ( download ) , 0 ) ; WebKitDownloadPrivate * priv = download -> priv ; SoupMessage * message = priv -> networkResponse ? webkit_network_response_get_message ( priv -> networkResponse ) : NULL ; if ( ! message ) return 0 ; return MAX ( priv -> currentSize , static_cast < guint64 > ( soup_message_headers_get_content_length ( message -> response_headers ) ) ) ; }
webkit_download_get_total_size:
 @download: the #WebKitDownload
webkit_download_get_total_size : @download : the #WebKitDownload