diff options
Diffstat (limited to 'ppapi/proxy/dispatcher.cc')
-rw-r--r-- | ppapi/proxy/dispatcher.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ppapi/proxy/dispatcher.cc b/ppapi/proxy/dispatcher.cc index b34ce48..ef14d08 100644 --- a/ppapi/proxy/dispatcher.cc +++ b/ppapi/proxy/dispatcher.cc @@ -181,6 +181,7 @@ InterfaceList* InterfaceList::GetInstance() { 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 @@ const InterfaceProxy::Info* Dispatcher::GetPPPInterfaceInfo(InterfaceID id) { 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); |