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

Unified Diff: components/password_manager/content/common/credential_manager_messages.h

Issue 1861973002: Revert of Switch components/password_manager code from IPC messages to Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/password_manager/content/common/credential_manager_messages.h
diff --git a/components/password_manager/content/common/credential_manager_messages.h b/components/password_manager/content/common/credential_manager_messages.h
new file mode 100644
index 0000000000000000000000000000000000000000..6ac642fb418288214fa75dd5ad301fc961b9ace5
--- /dev/null
+++ b/components/password_manager/content/common/credential_manager_messages.h
@@ -0,0 +1,86 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Message definition file, included multiple times, hence no include guard.
+
+#include <string>
+#include <vector>
+
+#include "base/strings/string16.h"
+#include "components/password_manager/core/common/credential_manager_types.h"
+#include "content/public/common/common_param_traits.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"
+#include "url/ipc/url_param_traits.h"
+
+#define IPC_MESSAGE_START CredentialManagerMsgStart
+
+IPC_ENUM_TRAITS_MAX_VALUE(
+ password_manager::CredentialType,
+ password_manager::CredentialType::CREDENTIAL_TYPE_LAST)
+
+IPC_ENUM_TRAITS_MAX_VALUE(blink::WebCredentialManagerError,
+ blink::WebCredentialManagerErrorLastType)
+
+IPC_STRUCT_TRAITS_BEGIN(password_manager::CredentialInfo)
+ IPC_STRUCT_TRAITS_MEMBER(type)
+ IPC_STRUCT_TRAITS_MEMBER(id)
+ IPC_STRUCT_TRAITS_MEMBER(name)
+ IPC_STRUCT_TRAITS_MEMBER(icon)
+ IPC_STRUCT_TRAITS_MEMBER(password)
+ IPC_STRUCT_TRAITS_MEMBER(federation)
+IPC_STRUCT_TRAITS_END()
+
+// ----------------------------------------------------------------------------
+// Messages sent from the renderer to the browser
+
+// Passes the notification from 'navigator.credentials.store()' up to
+// the browser process in order to (among other things) prompt the user to save
+// the credential she used for signin. The browser process will respond with a
+// CredentialManagerMsg_AcknowledgeStore message.
+IPC_MESSAGE_ROUTED2(CredentialManagerHostMsg_Store,
+ int /* request_id */,
+ password_manager::CredentialInfo /* credential */)
+
+// Passes the notification from 'navigator.credentials.requireUserMediation()'
+// up to the browser process in order to clear the "zeroclick" bit on that
+// origin's stored credentials. The browser process will respond with a
+// CredentialManagerMsg_AcknowledgeRequireUserMediation message.
+IPC_MESSAGE_ROUTED1(CredentialManagerHostMsg_RequireUserMediation,
+ int /* request_id */)
+
+// Requests a credential from the browser process in response to a page calling
+// 'navigator.credentials.get()'. The browser process will respond with a
+// CredentialManagerMsg_SendCredential message.
+IPC_MESSAGE_ROUTED4(CredentialManagerHostMsg_RequestCredential,
+ int /* request_id */,
+ bool /* zero_click_only */,
+ bool /* include_passwords */,
+ std::vector<GURL> /* federations */)
+
+// ----------------------------------------------------------------------------
+// Messages sent from the browser to the renderer
+
+// Notify the renderer that the browser process has finished processing a
+// CredentialManagerHostMsg_Store message.
+IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeStore, int /* request_id */)
+
+// Notify the renderer that the browser process has finished processing a
+// CredentialManagerHostMsg_RequireUserMediation message.
+IPC_MESSAGE_ROUTED1(CredentialManagerMsg_AcknowledgeRequireUserMediation,
+ int /* request_id */)
+
+// Send a credential to the renderer in response to a
+// CredentialManagerHostMsg_RequestCredential message.
+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 /* rejection_reason */)

Powered by Google App Engine
This is Rietveld 408576698