| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Message definition file, included multiple times, hence no include guard. | 5 // Message definition file, included multiple times, hence no include guard. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "components/password_manager/content/common/credential_manager_types.h" | 11 #include "components/password_manager/content/common/credential_manager_types.h" |
| 12 #include "content/public/common/common_param_traits.h" | 12 #include "content/public/common/common_param_traits.h" |
| 13 #include "content/public/common/common_param_traits_macros.h" | 13 #include "content/public/common/common_param_traits_macros.h" |
| 14 #include "ipc/ipc_message_macros.h" | 14 #include "ipc/ipc_message_macros.h" |
| 15 #include "ipc/ipc_message_utils.h" | 15 #include "ipc/ipc_message_utils.h" |
| 16 #include "url/gurl.h" | 16 #include "url/gurl.h" |
| 17 | 17 |
| 18 #define IPC_MESSAGE_START CredentialManagerMsgStart | 18 #define IPC_MESSAGE_START CredentialManagerMsgStart |
| 19 | 19 |
| 20 IPC_ENUM_TRAITS_MAX_VALUE(password_manager::CredentialType, | 20 IPC_ENUM_TRAITS_MAX_VALUE(password_manager::CredentialType, |
| 21 password_manager::CREDENTIAL_TYPE_LAST); | 21 password_manager::CREDENTIAL_TYPE_LAST) |
| 22 | 22 |
| 23 IPC_STRUCT_TRAITS_BEGIN(password_manager::CredentialInfo) | 23 IPC_STRUCT_TRAITS_BEGIN(password_manager::CredentialInfo) |
| 24 IPC_STRUCT_TRAITS_MEMBER(type) | 24 IPC_STRUCT_TRAITS_MEMBER(type) |
| 25 IPC_STRUCT_TRAITS_MEMBER(id) | 25 IPC_STRUCT_TRAITS_MEMBER(id) |
| 26 IPC_STRUCT_TRAITS_MEMBER(name) | 26 IPC_STRUCT_TRAITS_MEMBER(name) |
| 27 IPC_STRUCT_TRAITS_MEMBER(avatar) | 27 IPC_STRUCT_TRAITS_MEMBER(avatar) |
| 28 IPC_STRUCT_TRAITS_MEMBER(password) | 28 IPC_STRUCT_TRAITS_MEMBER(password) |
| 29 IPC_STRUCT_TRAITS_MEMBER(federation) | 29 IPC_STRUCT_TRAITS_MEMBER(federation) |
| 30 IPC_STRUCT_TRAITS_END() | 30 IPC_STRUCT_TRAITS_END() |
| 31 | 31 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 int /* request_id */, | 63 int /* request_id */, |
| 64 bool /* zero_click_only */, | 64 bool /* zero_click_only */, |
| 65 std::vector<GURL> /* federations */) | 65 std::vector<GURL> /* federations */) |
| 66 | 66 |
| 67 // ---------------------------------------------------------------------------- | 67 // ---------------------------------------------------------------------------- |
| 68 // Messages sent from the browser to the renderer | 68 // Messages sent from the browser to the renderer |
| 69 | 69 |
| 70 // Notify the renderer that the browser process has finished processing a | 70 // Notify the renderer that the browser process has finished processing a |
| 71 // CredentialManagerHostMsg_NotifyFailedSignedIn message. | 71 // CredentialManagerHostMsg_NotifyFailedSignedIn message. |
| 72 IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeFailedSignIn, | 72 IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeFailedSignIn, |
| 73 int /* request_id */); | 73 int /* request_id */) |
| 74 | 74 |
| 75 // Notify the renderer that the browser process has finished processing a | 75 // Notify the renderer that the browser process has finished processing a |
| 76 // CredentialManagerHostMsg_NotifySignedIn message. | 76 // CredentialManagerHostMsg_NotifySignedIn message. |
| 77 IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeSignedIn, | 77 IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeSignedIn, |
| 78 int /* request_id */); | 78 int /* request_id */) |
| 79 | 79 |
| 80 // Notify the renderer that the browser process has finished processing a | 80 // Notify the renderer that the browser process has finished processing a |
| 81 // CredentialManagerHostMsg_NotifySignedOut message. | 81 // CredentialManagerHostMsg_NotifySignedOut message. |
| 82 IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeSignedOut, | 82 IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeSignedOut, |
| 83 int /* request_id */); | 83 int /* request_id */) |
| 84 | 84 |
| 85 // Send a credential to the renderer in response to a | 85 // Send a credential to the renderer in response to a |
| 86 // CredentialManagerHostMsg_RequestCredential message. | 86 // CredentialManagerHostMsg_RequestCredential message. |
| 87 IPC_MESSAGE_ROUTED2(CredentialManagerMsg_SendCredential, | 87 IPC_MESSAGE_ROUTED2(CredentialManagerMsg_SendCredential, |
| 88 int /* request_id */, | 88 int /* request_id */, |
| 89 password_manager::CredentialInfo /* credential */) | 89 password_manager::CredentialInfo /* credential */) |
| OLD | NEW |