Index: ppapi/proxy/plugin_proxy_delegate.h |
diff --git a/ppapi/proxy/plugin_proxy_delegate.h b/ppapi/proxy/plugin_proxy_delegate.h |
index 0ce2655fd5e791fa6d9540be491bcfaf2902006a..de0c397eba80743ca26c079903fa54c94dac7d09 100644 |
--- a/ppapi/proxy/plugin_proxy_delegate.h |
+++ b/ppapi/proxy/plugin_proxy_delegate.h |
@@ -7,6 +7,10 @@ |
#include <string> |
+namespace IPC { |
+class Sender; |
+} |
+ |
namespace ppapi { |
namespace proxy { |
@@ -15,9 +19,13 @@ class PPAPI_PROXY_EXPORT PluginProxyDelegate { |
virtual ~PluginProxyDelegate() {} |
// Sends the given message to the browser. Identical semantics to IPC::Sender |
- // interface. |
+ // interface. New code should use GetBrowserSender instead. |
+ // TODO(brettw) remove this. |
virtual bool SendToBrowser(IPC::Message* msg) = 0; |
+ // Returns the channel for sending to the browser. |
+ virtual IPC::Sender* GetBrowserSender() = 0; |
+ |
// Returns the language code of the current UI language. |
virtual std::string GetUILanguage() = 0; |