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 // Messages sent from the renderer to the browser. 17 // Request a WebRTC identity. 18 IPC_MESSAGE_CONTROL3(WebRTCIdentityMsg_RequestIdentity, 19 GURL /* origin */, 20 std::string /* identity_name */, 21 std::string /* common_name */) 22 // Cancel the WebRTC identity request. 23 IPC_MESSAGE_CONTROL0(WebRTCIdentityMsg_CancelRequest) 24 25 // Messages sent from the browser to the renderer. 26 // Return a WebRTC identity. 27 IPC_MESSAGE_CONTROL2(WebRTCIdentityHostMsg_IdentityReady, 28 std::string /* certificate */, 29 std::string /* private_key */) 30 // Notifies an error from the identity request. 31 IPC_MESSAGE_CONTROL1(WebRTCIdentityHostMsg_RequestFailed, int /* error */) 32