summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/connection.h
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-23 21:19:31 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-23 21:19:31 +0000
commit8dd2d2c0a249bd29ba0d8ebae82d6d4d37edd900 (patch)
tree97f4551bc483c5add251eba45ac5ac62b6040333 /ppapi/proxy/connection.h
parente594bc73d39a8faa129918602c6db08a1515e58c (diff)
downloadchromium_src-8dd2d2c0a249bd29ba0d8ebae82d6d4d37edd900.zip
chromium_src-8dd2d2c0a249bd29ba0d8ebae82d6d4d37edd900.tar.gz
chromium_src-8dd2d2c0a249bd29ba0d8ebae82d6d4d37edd900.tar.bz2
Pepper: Add routing ID information to Connection.
To support in-process plugins, ResourceCall messages from the renderer to the browser will need to provide routing ID information for receiving a reply. We add a boolean for "in_process" as well so the plugin need only send the extra information when the plugin is running in-process. BUG= Review URL: https://chromiumcodereview.appspot.com/19704009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213223 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/connection.h')
-rw-r--r--ppapi/proxy/connection.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/ppapi/proxy/connection.h b/ppapi/proxy/connection.h
index 5f99f06..13cbbc6 100644
--- a/ppapi/proxy/connection.h
+++ b/ppapi/proxy/connection.h
@@ -5,6 +5,8 @@
#ifndef PPAPI_PROXY_CONNECTION_H_
#define PPAPI_PROXY_CONNECTION_H_
+#include "ipc/ipc_message.h"
+
namespace IPC {
class Sender;
}
@@ -15,15 +17,31 @@ namespace proxy {
// This struct holds the channels that a resource uses to send message to the
// browser and renderer.
struct Connection {
- Connection() : browser_sender(0), renderer_sender(0) {
+ Connection() : browser_sender(0),
+ renderer_sender(0),
+ in_process(false),
+ browser_sender_routing_id(MSG_ROUTING_NONE) {
}
Connection(IPC::Sender* browser, IPC::Sender* renderer)
: browser_sender(browser),
- renderer_sender(renderer) {
+ renderer_sender(renderer),
+ in_process(false),
+ browser_sender_routing_id(MSG_ROUTING_NONE) {
+ }
+ Connection(IPC::Sender* browser, IPC::Sender* renderer, int routing_id)
+ : browser_sender(browser),
+ renderer_sender(renderer),
+ in_process(true),
+ browser_sender_routing_id(routing_id) {
}
IPC::Sender* browser_sender;
IPC::Sender* renderer_sender;
+ bool in_process;
+ // We need to use a routing ID when a plugin is in-process, and messages are
+ // sent back from the browser to the renderer. This is so that messages are
+ // routed to the proper RenderViewImpl.
+ int browser_sender_routing_id;
};
} // namespace proxy