| 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" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 IPC_STRUCT_TRAITS_MEMBER(id) | 30 IPC_STRUCT_TRAITS_MEMBER(id) |
| 31 IPC_STRUCT_TRAITS_MEMBER(name) | 31 IPC_STRUCT_TRAITS_MEMBER(name) |
| 32 IPC_STRUCT_TRAITS_MEMBER(avatar) | 32 IPC_STRUCT_TRAITS_MEMBER(avatar) |
| 33 IPC_STRUCT_TRAITS_MEMBER(password) | 33 IPC_STRUCT_TRAITS_MEMBER(password) |
| 34 IPC_STRUCT_TRAITS_MEMBER(federation) | 34 IPC_STRUCT_TRAITS_MEMBER(federation) |
| 35 IPC_STRUCT_TRAITS_END() | 35 IPC_STRUCT_TRAITS_END() |
| 36 | 36 |
| 37 // ---------------------------------------------------------------------------- | 37 // ---------------------------------------------------------------------------- |
| 38 // Messages sent from the renderer to the browser | 38 // Messages sent from the renderer to the browser |
| 39 | 39 |
| 40 // Passes the notification from 'navigator.credentials.notifyFailedSignIn()' up | |
| 41 // to the browser process in order to suppress the automatic bubble which would | |
| 42 // pop up in order to prompt the user to save the credential she used for | |
| 43 // signin. The browser process will respond with a | |
| 44 // CredentialManagerMsg_AcknowledgeFailedSignedIn message. | |
| 45 IPC_MESSAGE_ROUTED2(CredentialManagerHostMsg_NotifyFailedSignIn, | |
| 46 int /* request_id */, | |
| 47 password_manager::CredentialInfo /* credential */) | |
| 48 | |
| 49 // Passes the notification from 'navigator.credentials.notifySignedIn()' up to | 40 // Passes the notification from 'navigator.credentials.notifySignedIn()' up to |
| 50 // the browser process in order to (among other things) prompt the user to save | 41 // the browser process in order to (among other things) prompt the user to save |
| 51 // the credential she used for signin. The browser process will respond with a | 42 // the credential she used for signin. The browser process will respond with a |
| 52 // CredentialManagerMsg_AcknowledgeSignedIn message. | 43 // CredentialManagerMsg_AcknowledgeSignedIn message. |
| 53 IPC_MESSAGE_ROUTED2(CredentialManagerHostMsg_NotifySignedIn, | 44 IPC_MESSAGE_ROUTED2(CredentialManagerHostMsg_NotifySignedIn, |
| 54 int /* request_id */, | 45 int /* request_id */, |
| 55 password_manager::CredentialInfo /* credential */) | 46 password_manager::CredentialInfo /* credential */) |
| 56 | 47 |
| 57 // Passes the notification from 'navigator.credentials.requireUserMediation()' | 48 // Passes the notification from 'navigator.credentials.requireUserMediation()' |
| 58 // up to the browser process in order to clear the "zeroclick" bit on that | 49 // up to the browser process in order to clear the "zeroclick" bit on that |
| 59 // origin's stored credentials. The browser process will respond with a | 50 // origin's stored credentials. The browser process will respond with a |
| 60 // CredentialManagerMsg_AcknowledgeRequireUserMediation message. | 51 // CredentialManagerMsg_AcknowledgeRequireUserMediation message. |
| 61 IPC_MESSAGE_ROUTED1(CredentialManagerHostMsg_RequireUserMediation, | 52 IPC_MESSAGE_ROUTED1(CredentialManagerHostMsg_RequireUserMediation, |
| 62 int /* request_id */) | 53 int /* request_id */) |
| 63 | 54 |
| 64 // Requests a credential from the browser process in response to a page calling | 55 // Requests a credential from the browser process in response to a page calling |
| 65 // 'navigator.credentials.request()'. The browser process will respond with a | 56 // 'navigator.credentials.request()'. The browser process will respond with a |
| 66 // CredentialManagerMsg_SendCredential message. | 57 // CredentialManagerMsg_SendCredential message. |
| 67 IPC_MESSAGE_ROUTED3(CredentialManagerHostMsg_RequestCredential, | 58 IPC_MESSAGE_ROUTED3(CredentialManagerHostMsg_RequestCredential, |
| 68 int /* request_id */, | 59 int /* request_id */, |
| 69 bool /* zero_click_only */, | 60 bool /* zero_click_only */, |
| 70 std::vector<GURL> /* federations */) | 61 std::vector<GURL> /* federations */) |
| 71 | 62 |
| 72 // ---------------------------------------------------------------------------- | 63 // ---------------------------------------------------------------------------- |
| 73 // Messages sent from the browser to the renderer | 64 // Messages sent from the browser to the renderer |
| 74 | 65 |
| 75 // Notify the renderer that the browser process has finished processing a | 66 // Notify the renderer that the browser process has finished processing a |
| 76 // CredentialManagerHostMsg_NotifyFailedSignedIn message. | |
| 77 IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeFailedSignIn, | |
| 78 int /* request_id */) | |
| 79 | |
| 80 // Notify the renderer that the browser process has finished processing a | |
| 81 // CredentialManagerHostMsg_NotifySignedIn message. | 67 // CredentialManagerHostMsg_NotifySignedIn message. |
| 82 IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeSignedIn, | 68 IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeSignedIn, |
| 83 int /* request_id */) | 69 int /* request_id */) |
| 84 | 70 |
| 85 // Notify the renderer that the browser process has finished processing a | 71 // Notify the renderer that the browser process has finished processing a |
| 86 // CredentialManagerHostMsg_RequireUserMediation message. | 72 // CredentialManagerHostMsg_RequireUserMediation message. |
| 87 IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeRequireUserMediation, | 73 IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeRequireUserMediation, |
| 88 int /* request_id */) | 74 int /* request_id */) |
| 89 | 75 |
| 90 // Send a credential to the renderer in response to a | 76 // Send a credential to the renderer in response to a |
| 91 // CredentialManagerHostMsg_RequestCredential message. | 77 // CredentialManagerHostMsg_RequestCredential message. |
| 92 IPC_MESSAGE_ROUTED2(CredentialManagerMsg_SendCredential, | 78 IPC_MESSAGE_ROUTED2(CredentialManagerMsg_SendCredential, |
| 93 int /* request_id */, | 79 int /* request_id */, |
| 94 password_manager::CredentialInfo /* credential */) | 80 password_manager::CredentialInfo /* credential */) |
| 95 | 81 |
| 96 // Reject the credential request in response to a | 82 // Reject the credential request in response to a |
| 97 // CredentialManagerHostMsg_RequestCredential message. | 83 // CredentialManagerHostMsg_RequestCredential message. |
| 98 IPC_MESSAGE_ROUTED2( | 84 IPC_MESSAGE_ROUTED2( |
| 99 CredentialManagerMsg_RejectCredentialRequest, | 85 CredentialManagerMsg_RejectCredentialRequest, |
| 100 int /* request_id */, | 86 int /* request_id */, |
| 101 blink::WebCredentialManagerError::ErrorType /* rejection_reason */) | 87 blink::WebCredentialManagerError::ErrorType /* rejection_reason */) |
| OLD | NEW |