Home
last modified time | relevance | path

Searched refs:PairingRegistry (Results 1 – 25 of 29) sorted by relevance

12

/external/chromium_org/remoting/protocol/
Dpairing_registry.cc24 const char PairingRegistry::kCreatedTimeKey[] = "createdTime";
25 const char PairingRegistry::kClientIdKey[] = "clientId";
26 const char PairingRegistry::kClientNameKey[] = "clientName";
27 const char PairingRegistry::kSharedSecretKey[] = "sharedSecret";
29 PairingRegistry::Pairing::Pairing() { in Pairing()
32 PairingRegistry::Pairing::Pairing(const base::Time& created_time, in Pairing()
42 PairingRegistry::Pairing::~Pairing() { in ~Pairing()
45 PairingRegistry::Pairing PairingRegistry::Pairing::Create( in Create()
57 PairingRegistry::Pairing PairingRegistry::Pairing::CreateFromValue( in CreateFromValue()
75 scoped_ptr<base::DictionaryValue> PairingRegistry::Pairing::ToValue() const { in ToValue()
[all …]
Dpairing_registry_unittest.cc26 using remoting::protocol::PairingRegistry;
35 MOCK_METHOD1(GetPairingCallback, void(PairingRegistry::Pairing));
47 void VerifyPairing(PairingRegistry::Pairing expected, in VerifyPairing()
50 EXPECT_TRUE(actual.GetString(PairingRegistry::kClientNameKey, &value)); in VerifyPairing()
52 EXPECT_TRUE(actual.GetString(PairingRegistry::kClientIdKey, &value)); in VerifyPairing()
55 EXPECT_FALSE(actual.HasKey(PairingRegistry::kSharedSecretKey)); in VerifyPairing()
74 PairingRegistry::Pairing actual) { in ExpectSecret()
93 scoped_refptr<PairingRegistry> registry = new SynchronousPairingRegistry( in TEST_F()
94 scoped_ptr<PairingRegistry::Delegate>(new MockPairingRegistryDelegate())); in TEST_F()
95 PairingRegistry::Pairing pairing_1 = registry->CreatePairing("my_client"); in TEST_F()
[all …]
Dpairing_registry.h41 class PairingRegistry : public base::RefCountedThreadSafe<PairingRegistry> {
107 PairingRegistry(
137 friend class base::RefCountedThreadSafe<PairingRegistry>;
138 virtual ~PairingRegistry();
155 const protocol::PairingRegistry::GetAllPairingsCallback& callback);
157 const protocol::PairingRegistry::DoneCallback& callback);
160 const protocol::PairingRegistry::GetPairingCallback& callback);
162 const protocol::PairingRegistry::Pairing& pairing,
163 const protocol::PairingRegistry::DoneCallback& callback);
166 const protocol::PairingRegistry::DoneCallback& callback);
[all …]
Dpairing_host_authenticator.h18 class PairingRegistry; variable
23 scoped_refptr<PairingRegistry> pairing_registry,
46 PairingRegistry::Pairing pairing);
49 scoped_refptr<PairingRegistry> pairing_registry_;
Dprotocol_mock_objects.cc74 protocol::PairingRegistry::Pairing MockPairingRegistryDelegate::Load( in Load()
80 return protocol::PairingRegistry::Pairing(); in Load()
85 const protocol::PairingRegistry::Pairing& pairing) { in Save()
97 : PairingRegistry(base::ThreadTaskRunnerHandle::Get(), delegate.Pass()) { in SynchronousPairingRegistry()
Dme2me_host_authenticator_factory.h25 class PairingRegistry; variable
36 scoped_refptr<PairingRegistry> pairing_registry);
73 scoped_refptr<PairingRegistry> pairing_registry_;
Dprotocol_mock_objects.h218 class MockPairingRegistryDelegate : public PairingRegistry::Delegate {
226 virtual protocol::PairingRegistry::Pairing Load(
228 virtual bool Save(const protocol::PairingRegistry::Pairing& pairing) OVERRIDE;
232 typedef std::map<std::string, protocol::PairingRegistry::Pairing> Pairings;
236 class SynchronousPairingRegistry : public PairingRegistry {
Dnegotiating_host_authenticator.h40 scoped_refptr<PairingRegistry> pairing_registry);
75 scoped_refptr<PairingRegistry> pairing_registry_;
Dpairing_host_authenticator.cc19 scoped_refptr<PairingRegistry> pairing_registry, in PairingHostAuthenticator()
97 PairingRegistry::Pairing pairing) { in ProcessMessageWithPairing()
Dnegotiating_authenticator_unittest.cc88 scoped_ptr<PairingRegistry::Delegate>( in CreatePairingRegistry()
91 PairingRegistry::Pairing pairing( in CreatePairingRegistry()
145 scoped_refptr<PairingRegistry> pairing_registry_;
/external/chromium_org/remoting/host/
Dpairing_registry_delegate.cc11 using protocol::PairingRegistry;
13 scoped_refptr<PairingRegistry> CreatePairingRegistry( in CreatePairingRegistry()
15 scoped_refptr<PairingRegistry> pairing_registry; in CreatePairingRegistry()
16 scoped_ptr<PairingRegistry::Delegate> delegate( in CreatePairingRegistry()
19 pairing_registry = new PairingRegistry(task_runner, delegate.Pass()); in CreatePairingRegistry()
Dpairing_registry_delegate_win.cc98 using protocol::PairingRegistry;
138 PairingRegistry::Pairing pairing = Load(base::WideToUTF8(value_name)); in LoadAll()
182 PairingRegistry::Pairing PairingRegistryDelegateWin::Load( in Load()
191 return PairingRegistry::Pairing(); in Load()
198 return PairingRegistry::Pairing(); in Load()
204 return PairingRegistry::Pairing::CreateFromValue(*pairing); in Load()
207 bool PairingRegistryDelegateWin::Save(const PairingRegistry::Pairing& pairing) { in Save()
219 CHECK(pairing_json->Remove(PairingRegistry::kSharedSecretKey, &secret_key)); in Save()
221 secret_json->Set(PairingRegistry::kSharedSecretKey, secret_key.release()); in Save()
265 scoped_ptr<PairingRegistry::Delegate> CreatePairingRegistryDelegate() { in CreatePairingRegistryDelegate()
[all …]
Dpairing_registry_delegate_win_unittest.cc17 using protocol::PairingRegistry;
58 PairingRegistry::Pairing pairing1(base::Time::Now(), "xxx", "xxx", "xxx"); in TEST_F()
59 PairingRegistry::Pairing pairing2(base::Time::Now(), "yyy", "yyy", "yyy"); in TEST_F()
74 EXPECT_EQ(delegate->Load(pairing1.client_id()), PairingRegistry::Pairing()); in TEST_F()
82 EXPECT_EQ(PairingRegistry::Pairing::CreateFromValue(*json), pairing2); in TEST_F()
98 PairingRegistry::Pairing pairing(base::Time::Now(), "xxx", "xxx", "xxx"); in TEST_F()
108 PairingRegistry::Pairing pairing(base::Time::Now(), "xxx", "xxx", "xxx"); in TEST_F()
117 PairingRegistry::Pairing unprivileged_pairing = in TEST_F()
Dpairing_registry_delegate_linux.cc30 using protocol::PairingRegistry;
82 PairingRegistry::Pairing PairingRegistryDelegateLinux::Load( in Load()
96 return PairingRegistry::Pairing(); in Load()
102 return PairingRegistry::Pairing(); in Load()
105 return PairingRegistry::Pairing::CreateFromValue(*pairing_dictionary); in Load()
109 const PairingRegistry::Pairing& pairing) { in Save()
159 scoped_ptr<PairingRegistry::Delegate> CreatePairingRegistryDelegate() { in CreatePairingRegistryDelegate()
160 return scoped_ptr<PairingRegistry::Delegate>( in CreatePairingRegistryDelegate()
Dpairing_registry_delegate_linux_unittest.cc14 using protocol::PairingRegistry;
44 PairingRegistry::Pairing pairing1(base::Time::Now(), "xxx", "xxx", "xxx"); in TEST_F()
45 PairingRegistry::Pairing pairing2(base::Time::Now(), "yyy", "yyy", "yyy"); in TEST_F()
60 EXPECT_EQ(delegate->Load(pairing1.client_id()), PairingRegistry::Pairing()); in TEST_F()
68 EXPECT_EQ(PairingRegistry::Pairing::CreateFromValue(*json), pairing2); in TEST_F()
84 PairingRegistry::Pairing pairing(base::Time::Now(), "xxx", "xxx", "xxx"); in TEST_F()
Dpairing_registry_delegate_mac.cc11 using protocol::PairingRegistry;
13 scoped_ptr<PairingRegistry::Delegate> CreatePairingRegistryDelegate() { in CreatePairingRegistryDelegate()
14 return scoped_ptr<PairingRegistry::Delegate>(); in CreatePairingRegistryDelegate()
Dpairing_registry_delegate_linux.h19 : public protocol::PairingRegistry::Delegate {
27 virtual protocol::PairingRegistry::Pairing Load(
29 virtual bool Save(const protocol::PairingRegistry::Pairing& pairing) OVERRIDE;
Dpairing_registry_delegate_win.h44 : public protocol::PairingRegistry::Delegate {
57 virtual protocol::PairingRegistry::Pairing Load(
59 virtual bool Save(const protocol::PairingRegistry::Pairing& pairing) OVERRIDE;
Dpairing_registry_delegate.h19 scoped_ptr<protocol::PairingRegistry::Delegate>
25 scoped_refptr<protocol::PairingRegistry> CreatePairingRegistry(
Dchromoting_host.h149 scoped_refptr<protocol::PairingRegistry> pairing_registry() const { in pairing_registry()
153 scoped_refptr<protocol::PairingRegistry> pairing_registry) { in set_pairing_registry()
214 scoped_refptr<protocol::PairingRegistry> pairing_registry_;
Dclient_session.h100 scoped_refptr<protocol::PairingRegistry> pairing_registry,
249 scoped_refptr<protocol::PairingRegistry> pairing_registry_;
Dremoting_me2me_host.cc106 using remoting::protocol::PairingRegistry;
345 scoped_ptr<PairingRegistry::Delegate> pairing_registry_delegate_;
595 scoped_refptr<PairingRegistry> pairing_registry = NULL; in CreateAuthenticatorFactory()
601 pairing_registry = new PairingRegistry(context_->file_task_runner(), in CreateAuthenticatorFactory()
804 pairing_registry_delegate_ = delegate.PassAs<PairingRegistry::Delegate>(); in OnInitializePairingRegistry()
/external/chromium_org/remoting/host/setup/
Dme2me_native_messaging_host_main.cc35 using remoting::protocol::PairingRegistry;
194 scoped_refptr<PairingRegistry> pairing_registry; in StartMe2MeNativeMessagingHost()
235 pairing_registry = new PairingRegistry( in StartMe2MeNativeMessagingHost()
237 delegate.PassAs<PairingRegistry::Delegate>()); in StartMe2MeNativeMessagingHost()
Dme2me_native_messaging_host.h33 class PairingRegistry; variable
45 scoped_refptr<protocol::PairingRegistry> pairing_registry,
176 scoped_refptr<protocol::PairingRegistry> pairing_registry_;
Dme2me_native_messaging_host_unittest.cc28 using remoting::protocol::PairingRegistry;
322 scoped_refptr<PairingRegistry> pairing_registry = in StartHost()
323 new SynchronousPairingRegistry(scoped_ptr<PairingRegistry::Delegate>( in StartHost()

12