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

Unified Diff: ppapi/proxy/connection.h

Issue 19704009: Pepper: Add routing ID information to Connection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderView routing ID, comments Created 7 years, 5 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/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/connection.h
diff --git a/ppapi/proxy/connection.h b/ppapi/proxy/connection.h
index 5f99f06378ad9443c1439f8ce6b335971bc76624..13cbbc6fcf4dc5b28965fdc3298b843339a5fe91 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
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698