Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Side by Side Diff: components/password_manager/content/common/credential_manager_messages.h

Issue 835523004: Credential Manager API: Enable forward declaration for CredentialType enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "third_party/WebKit/public/platform/WebCredentialManagerError.h" 16 #include "third_party/WebKit/public/platform/WebCredentialManagerError.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 #define IPC_MESSAGE_START CredentialManagerMsgStart 19 #define IPC_MESSAGE_START CredentialManagerMsgStart
20 20
21 IPC_ENUM_TRAITS_MAX_VALUE(password_manager::CredentialType, 21 IPC_ENUM_TRAITS_MAX_VALUE(
22 password_manager::CREDENTIAL_TYPE_LAST) 22 password_manager::CredentialType,
23 password_manager::CredentialType::CREDENTIAL_TYPE_LAST)
23 24
24 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebCredentialManagerError::ErrorType, 25 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebCredentialManagerError::ErrorType,
25 blink::WebCredentialManagerError::ErrorTypeLast) 26 blink::WebCredentialManagerError::ErrorTypeLast)
26 27
27 IPC_STRUCT_TRAITS_BEGIN(password_manager::CredentialInfo) 28 IPC_STRUCT_TRAITS_BEGIN(password_manager::CredentialInfo)
28 IPC_STRUCT_TRAITS_MEMBER(type) 29 IPC_STRUCT_TRAITS_MEMBER(type)
29 IPC_STRUCT_TRAITS_MEMBER(id) 30 IPC_STRUCT_TRAITS_MEMBER(id)
30 IPC_STRUCT_TRAITS_MEMBER(name) 31 IPC_STRUCT_TRAITS_MEMBER(name)
31 IPC_STRUCT_TRAITS_MEMBER(avatar) 32 IPC_STRUCT_TRAITS_MEMBER(avatar)
32 IPC_STRUCT_TRAITS_MEMBER(password) 33 IPC_STRUCT_TRAITS_MEMBER(password)
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 IPC_MESSAGE_ROUTED2(CredentialManagerMsg_SendCredential, 92 IPC_MESSAGE_ROUTED2(CredentialManagerMsg_SendCredential,
92 int /* request_id */, 93 int /* request_id */,
93 password_manager::CredentialInfo /* credential */) 94 password_manager::CredentialInfo /* credential */)
94 95
95 // Reject the credential request in response to a 96 // Reject the credential request in response to a
96 // CredentialManagerHostMsg_RequestCredential message. 97 // CredentialManagerHostMsg_RequestCredential message.
97 IPC_MESSAGE_ROUTED2( 98 IPC_MESSAGE_ROUTED2(
98 CredentialManagerMsg_RejectCredentialRequest, 99 CredentialManagerMsg_RejectCredentialRequest,
99 int /* request_id */, 100 int /* request_id */,
100 blink::WebCredentialManagerError::ErrorType /* rejection_reason */) 101 blink::WebCredentialManagerError::ErrorType /* rejection_reason */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698