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

Unified Diff: content/common/java_bridge_messages.h

Issue 8347005: Adds the renderer component of the Java Bridge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits Created 9 years, 2 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_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/java_bridge_messages.h
diff --git a/content/common/java_bridge_messages.h b/content/common/java_bridge_messages.h
new file mode 100644
index 0000000000000000000000000000000000000000..8dd23530ce2b08d6132a13ccafb60f6e1aa8eeb3
--- /dev/null
+++ b/content/common/java_bridge_messages.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2011 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 injected Java objects. See JavaBridgeDispatcher for details.
+
+// Multiply-included message file, hence no include guard.
+
+#include "content/common/webkit_param_traits.h" // For NPVariant_Param
+#include "ipc/ipc_channel_handle.h"
+#include "ipc/ipc_message_macros.h"
+
+#define IPC_MESSAGE_START JavaBridgeMsgStart
+
+// 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 */
+
+// Sent from browser to renderer to add a Java object with the given name.
+IPC_MESSAGE_ROUTED2(JavaBridgeMsg_AddNamedObject,
+ string16 /* name */,
+ NPVariant_Param) /* object */
+
+// Sent from browser to renderer to remove a Java object with the given name.
+IPC_MESSAGE_ROUTED1(JavaBridgeMsg_RemoveNamedObject,
+ string16 /* name */)
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698