This source file includes following definitions.
- CreatePairingRegistry
#include "remoting/host/pairing_registry_delegate.h"
#include "base/single_thread_task_runner.h"
namespace remoting {
using protocol::PairingRegistry;
scoped_refptr<PairingRegistry> CreatePairingRegistry(
scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
scoped_refptr<PairingRegistry> pairing_registry;
scoped_ptr<PairingRegistry::Delegate> delegate(
CreatePairingRegistryDelegate());
if (delegate) {
pairing_registry = new PairingRegistry(task_runner, delegate.Pass());
}
return pairing_registry;
}
}