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

Unified Diff: content/common/java_bridge_messages.h

Issue 8834013: Fix a race condition in the Java Bridge when adding objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 9 years 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
Index: content/common/java_bridge_messages.h
diff --git a/content/common/java_bridge_messages.h b/content/common/java_bridge_messages.h
index 4329f719ec8ea35e7af493a5d562e1cf1b05791e..2d6ff9d1e0bac7588d96dd9382bbee85be4e1ad6 100644
--- a/content/common/java_bridge_messages.h
+++ b/content/common/java_bridge_messages.h
@@ -15,8 +15,11 @@
// Messages for handling Java objects injected into JavaScript -----------------
// Sent from browser to renderer to initialize the Java Bridge.
-IPC_MESSAGE_ROUTED1(JavaBridgeMsg_Init,
- IPC::ChannelHandle) /* channel handle */
+IPC_MESSAGE_ROUTED0(JavaBridgeMsg_Init)
+
+// Sent from renderer to browser to get the channel handle for NP channel.
+IPC_SYNC_MESSAGE_ROUTED0_1(JavaBridgeMsg_GetChannelHandle,
+ IPC::ChannelHandle) /* channel handle */
// Sent from browser to renderer to add a Java object with the given name.
IPC_MESSAGE_ROUTED2(JavaBridgeMsg_AddNamedObject,

Powered by Google App Engine
This is Rietveld 408576698