1 // Copyright 2013 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.
5 // IPC messages for requesting WebRTC identity.
6 // Multiply-included message file, hence no include guard.
8 #include "content/common/content_export.h"
9 #include "ipc/ipc_message_macros.h"
12 #define IPC_MESSAGE_START WebRTCIdentityMsgStart
13 #undef IPC_MESSAGE_EXPORT
14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
16 IPC_STRUCT_BEGIN(WebRTCIdentityMsg_RequestIdentity_Params
)
17 IPC_STRUCT_MEMBER(int, request_id
)
18 IPC_STRUCT_MEMBER(GURL
, url
)
19 IPC_STRUCT_MEMBER(GURL
, first_party_for_cookies
)
20 IPC_STRUCT_MEMBER(std::string
, identity_name
)
21 IPC_STRUCT_MEMBER(std::string
, common_name
)
24 // Messages sent from the renderer to the browser.
25 // Request a WebRTC identity.
26 IPC_MESSAGE_CONTROL1(WebRTCIdentityMsg_RequestIdentity
,
27 WebRTCIdentityMsg_RequestIdentity_Params
)
29 // Cancel the WebRTC identity request.
30 IPC_MESSAGE_CONTROL0(WebRTCIdentityMsg_CancelRequest
)
32 // Messages sent from the browser to the renderer.
33 // Return a WebRTC identity.
34 IPC_MESSAGE_CONTROL3(WebRTCIdentityHostMsg_IdentityReady
,
36 std::string
/* certificate */,
37 std::string
/* private_key */)
38 // Notifies an error from the identity request.
39 IPC_MESSAGE_CONTROL2(WebRTCIdentityHostMsg_RequestFailed
,