#include "content/public/common/common_param_traits_macros.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_message_utils.h"
+#include "third_party/WebKit/public/platform/WebCredentialManagerError.h"
#include "url/gurl.h"
#define IPC_MESSAGE_START CredentialManagerMsgStart
IPC_ENUM_TRAITS_MAX_VALUE(password_manager::CredentialType,
password_manager::CREDENTIAL_TYPE_LAST)
+IPC_ENUM_TRAITS_MAX_VALUE(blink::WebCredentialManagerError::ErrorType,
+ blink::WebCredentialManagerError::ErrorTypeLast)
+
IPC_STRUCT_TRAITS_BEGIN(password_manager::CredentialInfo)
IPC_STRUCT_TRAITS_MEMBER(type)
IPC_STRUCT_TRAITS_MEMBER(id)
IPC_MESSAGE_ROUTED2(CredentialManagerMsg_SendCredential,
int /* request_id */,
password_manager::CredentialInfo /* credential */)
+
+// Reject the credential request in response to a
+// CredentialManagerHostMsg_RequestCredential message.
+IPC_MESSAGE_ROUTED2(
+ CredentialManagerMsg_RejectCredentialRequest,
+ int /* request_id */,
+ blink::WebCredentialManagerError::ErrorType /* rejection_reason */)