Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / components / password_manager / content / common / credential_manager_messages.h
index 684d95e..8fd5f80 100644 (file)
@@ -13,6 +13,7 @@
 #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
@@ -20,6 +21,9 @@
 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)
@@ -87,3 +91,10 @@ IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeSignedOut,
 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 */)