Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Message definition file, included multiple times, hence no include guard. | |
| 6 | |
| 7 #include <string> | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "base/strings/string16.h" | |
| 11 #include "components/password_manager/content/common/credential_manager_types.h" | |
| 12 #include "content/public/common/common_param_traits.h" | |
| 13 #include "content/public/common/common_param_traits_macros.h" | |
| 14 #include "ipc/ipc_message_macros.h" | |
| 15 #include "ipc/ipc_message_utils.h" | |
| 16 #include "third_party/WebKit/public/platform/WebCredentialManagerError.h" | |
| 17 #include "url/gurl.h" | |
| 18 | |
| 19 #define IPC_MESSAGE_START CredentialManagerMsgStart | |
| 20 | |
| 21 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebCredentialManagerError::ErrorType, | |
| 22 blink::WebCredentialManagerError::ErrorTypeLast); | |
| 23 | |
| 24 IPC_ENUM_TRAITS_MAX_VALUE( | |
| 25 password_manager::CredentialManagerCredentialType, | |
| 26 password_manager::CREDENTIAL_MANAGER_CREDENTIAL_TYPE_LAST); | |
| 27 | |
| 28 IPC_STRUCT_TRAITS_BEGIN(password_manager::CredentialManagerCredentialInfo) | |
| 29 IPC_STRUCT_TRAITS_MEMBER(type) | |
| 30 IPC_STRUCT_TRAITS_MEMBER(id) | |
| 31 IPC_STRUCT_TRAITS_MEMBER(name) | |
| 32 IPC_STRUCT_TRAITS_MEMBER(avatarURL) | |
| 33 IPC_STRUCT_TRAITS_MEMBER(data) | |
| 34 IPC_STRUCT_TRAITS_END() | |
| 35 | |
| 36 // ---------------------------------------------------------------------------- | |
| 37 // Messages sent from the renderer to the browser | |
| 38 | |
| 39 IPC_MESSAGE_ROUTED2(CredentialManagerHostMsg_NotifySignedIn, | |
|
Ilya Sherman
2014/08/15 20:42:37
You'll want to document each of the messages.
Mike West
2014/08/19 08:37:15
Indeed!
| |
| 40 int /* request_id */, | |
|
Ilya Sherman
2014/08/15 20:42:37
nit: alignment (applies throughout)
Mike West
2014/08/19 08:37:15
Done.
| |
| 41 password_manager::CredentialManagerCredentialInfo) | |
|
Ilya Sherman
2014/08/15 20:42:37
nit: Please include a variable name for this one t
Mike West
2014/08/19 08:37:15
Done.
| |
| 42 | |
| 43 IPC_MESSAGE_ROUTED2(CredentialManagerHostMsg_NotifyFailedSignIn, | |
| 44 int /* request_id */, | |
| 45 password_manager::CredentialManagerCredentialInfo) | |
| 46 | |
| 47 IPC_MESSAGE_ROUTED1(CredentialManagerHostMsg_NotifySignedOut, | |
| 48 int /* request_id */) | |
| 49 | |
| 50 IPC_MESSAGE_ROUTED3(CredentialManagerHostMsg_Request, | |
|
Ilya Sherman
2014/08/15 20:42:37
nit: "Request" is a little too generic -- perhaps
Mike West
2014/08/19 08:37:15
Done.
| |
| 51 int /* request_id */, | |
| 52 bool /* zeroClickOnly */, | |
|
Ilya Sherman
2014/08/15 20:42:37
nit: hacker_case
Mike West
2014/08/19 08:37:15
:(
Or ':_(', I guess.
| |
| 53 std::vector<GURL> /* federations */) | |
| 54 | |
| 55 // ---------------------------------------------------------------------------- | |
| 56 // Messages sent from the browser to the renderer | |
| 57 | |
| 58 IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeFailedSignIn, | |
| 59 int /* request_id */); | |
| 60 IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeSignedIn, | |
| 61 int /* request_id */); | |
| 62 IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeSignedOut, | |
| 63 int /* request_id */); | |
| 64 IPC_MESSAGE_ROUTED2(CredentialManagerMsg_RequestResponse, | |
|
Ilya Sherman
2014/08/15 20:42:37
nit: This sounds like it is requesting a response,
Mike West
2014/08/19 08:37:15
Done.
| |
| 65 int /* request_id */, | |
| 66 password_manager::CredentialManagerCredentialInfo); | |
| OLD | NEW |