AppleOpenSource/WebKit2-7609.3.5.1.3/UIProcess/API/glib/WebKitCredential.cpp
/**
 * webkit_credential_new:
 * @username: The username for the new credential
 * @password: The password for the new credential
 * @persistence: The #WebKitCredentialPersistence of the new credential
 *
 * Create a new credential from the provided username, password and persistence mode.
 *
 * Returns: (transfer full): A #WebKitCredential.
 *
 * Since: 2.2
 */
@username: The username for the new credential
@password: The password for the new credential
@persistence: The #WebKitCredentialPersistence of the new credential

Create a new credential from the provided username, password and persistence mode.

(transfer full): A #WebKitCredential.


@username : The username for the new credential @password : The password for the new credential @persistence : The #WebKitCredentialPersistence of the new credential Create a new credential from the provided username password and persistence mode . ( transfer full ) : A #WebKitCredential .
WebKitCredential* webkit_credential_new(const gchar* username, const gchar* password, WebKitCredentialPersistence persistence)
{
    g_return_val_if_fail(username, 0);
    g_return_val_if_fail(password, 0);
    return webkitCredentialCreate(WebCore::Credential(String::fromUTF8(username), String::fromUTF8(password), toWebCoreCredentialPersistence(persistence)));
}
WebKitCredential * webkit_credential_new ( const gchar * username , const gchar * password , WebKitCredentialPersistence persistence ) { g_return_val_if_fail ( username , 0 ) ; g_return_val_if_fail ( password , 0 ) ; return webkitCredentialCreate ( WebCore :: Credential ( String :: fromUTF8 ( username ) , String :: fromUTF8 ( password ) , toWebCoreCredentialPersistence ( persistence ) ) ) ; }
webkit_credential_new:
 @username: The username for the new credential
 @password: The password for the new credential
 @persistence: The #WebKitCredentialPersistence of the new credential
webkit_credential_new : @username : The username for the new credential @password : The password for the new credential @persistence : The #WebKitCredentialPersistence of the new credential