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

Side by Side 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: cosmetic Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_PAIRING_REGISTRY_DELEGATE_H_ 5 #ifndef REMOTING_HOST_PAIRING_REGISTRY_DELEGATE_H_
6 #define REMOTING_HOST_PAIRING_REGISTRY_DELEGATE_H_ 6 #define REMOTING_HOST_PAIRING_REGISTRY_DELEGATE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "remoting/protocol/pairing_registry.h" 10 #include "remoting/protocol/pairing_registry.h"
11 11
12 namespace base { 12 namespace base {
13 class TaskRunner; 13 class SingleThreadTaskRunner;
14 } // namespace base 14 } // namespace base
15 15
16 namespace remoting { 16 namespace remoting {
17 // Returns a platform-specific pairing registry delegate that will save to 17 // Returns a platform-specific pairing registry delegate that will save to
18 // permanent storage using the specified TaskRunner. Returns NULL on platforms 18 // permanent storage. Returns NULL on platforms that don't support pairing.
19 // that don't support pairing.
20 scoped_ptr<protocol::PairingRegistry::Delegate> 19 scoped_ptr<protocol::PairingRegistry::Delegate>
21 CreatePairingRegistryDelegate(scoped_refptr<base::TaskRunner> task_runner); 20 CreatePairingRegistryDelegate();
22 21
23 // Convenience function which returns a new PairingRegistry, using the delegate 22 // Convenience function which returns a new PairingRegistry, using the delegate
24 // returned by CreatePairingRegistryDelegate(). 23 // returned by CreatePairingRegistryDelegate().
Jamie 2013/08/01 22:44:04 Please add something to this comment to explain wh
alexeypa (please no reviews) 2013/08/01 23:07:43 Done.
25 scoped_refptr<protocol::PairingRegistry> CreatePairingRegistry( 24 scoped_refptr<protocol::PairingRegistry> CreatePairingRegistry(
26 scoped_refptr<base::TaskRunner> task_runner); 25 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
27 26
28 } // namespace remoting 27 } // namespace remoting
29 28
30 #endif // REMOTING_HOST_PAIRING_REGISTRY_DELEGATE_H_ 29 #endif // REMOTING_HOST_PAIRING_REGISTRY_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/pairing_registry_delegate.cc » ('j') | remoting/host/pairing_registry_delegate_linux_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698