Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2541)

Unified Diff: content/common/media/webrtc_identity_messages.h

Issue 15969025: Generates the DTLS identity in browser process and returns it to render process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/media/webrtc_identity_messages.h
diff --git a/content/common/media/webrtc_identity_messages.h b/content/common/media/webrtc_identity_messages.h
new file mode 100644
index 0000000000000000000000000000000000000000..a8712970986171246827dc371a337f6b1dee027b
--- /dev/null
+++ b/content/common/media/webrtc_identity_messages.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// IPC messages for requesting WebRTC identity.
+// Multiply-included message file, hence no include guard.
+
+#include "googleurl/src/gurl.h"
+#include "ipc/ipc_message_macros.h"
+
+#define IPC_MESSAGE_START WebRTCIdentityMsgStart
+
+// Messages sent from the renderer to the browser.
+// Request a WebRTC identity.
+IPC_MESSAGE_CONTROL4(WebRTCIdentityMsg_RequestIdentity,
+ int /* request_id */,
+ GURL /* origin */,
+ std::string /* identity_name */,
+ std::string /* common_name */)
+// Cancel a WebRTC identity request.
+IPC_MESSAGE_CONTROL1(WebRTCIdentityMsg_CancelRequest, int /* request_id */)
+
+// Messages sent from the browser to the renderer.
+// Return a WebRTC identity.
+IPC_MESSAGE_CONTROL3(WebRTCIdentityHostMsg_IdentityReady,
+ int /* request_id */,
+ std::string /* certificate */,
+ std::string /* private_key */)
+// Notifies an error from the identity request.
+IPC_MESSAGE_CONTROL2(WebRTCIdentityHostMsg_RequestFailed,
+ int /* request_id */,
+ int /* error */)
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698