OLD | NEW |
| (Empty) |
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. | |
4 | |
5 // IPC messages for requesting WebRTC identity. | |
6 // Multiply-included message file, hence no include guard. | |
7 | |
8 #include "content/common/content_export.h" | |
9 #include "ipc/ipc_message_macros.h" | |
10 #include "url/gurl.h" | |
11 | |
12 #define IPC_MESSAGE_START WebRTCIdentityMsgStart | |
13 #undef IPC_MESSAGE_EXPORT | |
14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | |
15 | |
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) | |
22 IPC_STRUCT_END() | |
23 | |
24 // Messages sent from the renderer to the browser. | |
25 // Request a WebRTC identity. | |
26 IPC_MESSAGE_CONTROL1(WebRTCIdentityMsg_RequestIdentity, | |
27 WebRTCIdentityMsg_RequestIdentity_Params) | |
28 | |
29 // Cancel the WebRTC identity request. | |
30 IPC_MESSAGE_CONTROL0(WebRTCIdentityMsg_CancelRequest) | |
31 | |
32 // Messages sent from the browser to the renderer. | |
33 // Return a WebRTC identity. | |
34 IPC_MESSAGE_CONTROL3(WebRTCIdentityHostMsg_IdentityReady, | |
35 int /* request_id */, | |
36 std::string /* certificate */, | |
37 std::string /* private_key */) | |
38 // Notifies an error from the identity request. | |
39 IPC_MESSAGE_CONTROL2(WebRTCIdentityHostMsg_RequestFailed, | |
40 int /* request_id */, | |
41 int /* error */) | |
OLD | NEW |