OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 // IPC messages for requesting WebRTC identity. | 5 // IPC messages for requesting WebRTC identity. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "googleurl/src/gurl.h" | |
9 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
| 9 #include "url/gurl.h" |
10 | 10 |
11 #define IPC_MESSAGE_START WebRTCIdentityMsgStart | 11 #define IPC_MESSAGE_START WebRTCIdentityMsgStart |
12 | 12 |
13 // Messages sent from the renderer to the browser. | 13 // Messages sent from the renderer to the browser. |
14 // Request a WebRTC identity. | 14 // Request a WebRTC identity. |
15 IPC_MESSAGE_CONTROL4(WebRTCIdentityMsg_RequestIdentity, | 15 IPC_MESSAGE_CONTROL4(WebRTCIdentityMsg_RequestIdentity, |
16 int /* request_id */, | 16 int /* request_id */, |
17 GURL /* origin */, | 17 GURL /* origin */, |
18 std::string /* identity_name */, | 18 std::string /* identity_name */, |
19 std::string /* common_name */) | 19 std::string /* common_name */) |
20 // Cancel a WebRTC identity request. | 20 // Cancel a WebRTC identity request. |
21 IPC_MESSAGE_CONTROL1(WebRTCIdentityMsg_CancelRequest, int /* request_id */) | 21 IPC_MESSAGE_CONTROL1(WebRTCIdentityMsg_CancelRequest, int /* request_id */) |
22 | 22 |
23 // Messages sent from the browser to the renderer. | 23 // Messages sent from the browser to the renderer. |
24 // Return a WebRTC identity. | 24 // Return a WebRTC identity. |
25 IPC_MESSAGE_CONTROL3(WebRTCIdentityHostMsg_IdentityReady, | 25 IPC_MESSAGE_CONTROL3(WebRTCIdentityHostMsg_IdentityReady, |
26 int /* request_id */, | 26 int /* request_id */, |
27 std::string /* certificate */, | 27 std::string /* certificate */, |
28 std::string /* private_key */) | 28 std::string /* private_key */) |
29 // Notifies an error from the identity request. | 29 // Notifies an error from the identity request. |
30 IPC_MESSAGE_CONTROL2(WebRTCIdentityHostMsg_RequestFailed, | 30 IPC_MESSAGE_CONTROL2(WebRTCIdentityHostMsg_RequestFailed, |
31 int /* request_id */, | 31 int /* request_id */, |
32 int /* error */) | 32 int /* error */) |
OLD | NEW |