Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(886)

Unified Diff: remoting/host/pairing_registry_delegate.h

Issue 21128006: Refactored PairingRegistry::Delegate such that it can retrieve/modify for a single client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/pairing_registry_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/pairing_registry_delegate.h
diff --git a/remoting/host/pairing_registry_delegate.h b/remoting/host/pairing_registry_delegate.h
index 82ecbdedd4c4ed0509864306f8d4bbb988ec9c2c..b25836eefc381e55fff6df71339b9b03b1a820a6 100644
--- a/remoting/host/pairing_registry_delegate.h
+++ b/remoting/host/pairing_registry_delegate.h
@@ -10,20 +10,20 @@
#include "remoting/protocol/pairing_registry.h"
namespace base {
-class TaskRunner;
+class SingleThreadTaskRunner;
} // 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.
+// permanent storage. Returns NULL on platforms that don't support pairing.
scoped_ptr<protocol::PairingRegistry::Delegate>
-CreatePairingRegistryDelegate(scoped_refptr<base::TaskRunner> task_runner);
+CreatePairingRegistryDelegate();
// Convenience function which returns a new PairingRegistry, using the delegate
-// returned by CreatePairingRegistryDelegate().
+// returned by CreatePairingRegistryDelegate(). The passed |task_runner| is used
+// to run the delegate's methods asynchronously.
scoped_refptr<protocol::PairingRegistry> CreatePairingRegistry(
- scoped_refptr<base::TaskRunner> task_runner);
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner);
} // namespace remoting
« no previous file with comments | « no previous file | remoting/host/pairing_registry_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698