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