Index: remoting/host/pairing_registry_delegate.h |
diff --git a/remoting/host/pairing_registry_delegate.h b/remoting/host/pairing_registry_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..95a4907b751f0b59061f189b9b97578f1b35dd5a |
--- /dev/null |
+++ b/remoting/host/pairing_registry_delegate.h |
@@ -0,0 +1,23 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef REMOTING_HOST_PAIRING_REGISTRY_DELEGATE_H_ |
+#define REMOTING_HOST_PAIRING_REGISTRY_DELEGATE_H_ |
+ |
+#include "base/memory/scoped_ptr.h" |
+#include "remoting/protocol/pairing_registry.h" |
+ |
+namespace base { |
+class TaskRunner; |
+} // namespace base |
+ |
+namespace remoting { |
+// Returns a platform-specific pairing registry delegate that will save to |
+// permanent storage using the specified TaskRunner. Returns NULL on platforms |
+// that don't support pairing. |
+scoped_ptr<protocol::PairingRegistry::Delegate> |
+CreatePairingRegistryDelegate(scoped_refptr<base::TaskRunner> task_runner); |
+} // namespace remoting |
+ |
+#endif // REMOTING_HOST_PAIRING_REGISTRY_DELEGATE_H_ |