Index: ppapi/proxy/dispatcher.cc |
=================================================================== |
--- ppapi/proxy/dispatcher.cc (revision 84713) |
+++ ppapi/proxy/dispatcher.cc (working copy) |
@@ -181,6 +181,7 @@ |
Dispatcher::Dispatcher(base::ProcessHandle remote_process_handle, |
GetInterfaceFunc local_get_interface) |
: ProxyChannel(remote_process_handle), |
+ dispatcher_delegate_(NULL), |
disallow_trusted_interfaces_(false), // TODO(brettw) make this settable. |
local_get_interface_(local_get_interface), |
callback_tracker_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { |
@@ -241,6 +242,11 @@ |
return list->id_to_plugin_info_[id]; |
} |
+void Dispatcher::SetDelegate(Delegate* delegate) { |
+ DCHECK(!dispatcher_delegate_); |
+ dispatcher_delegate_ = delegate; |
+} |
+ |
void Dispatcher::SetSerializationRules( |
VarSerializationRules* var_serialization_rules) { |
serialization_rules_.reset(var_serialization_rules); |