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

Unified Diff: remoting/protocol/protocol_mock_objects.h

Issue 15709005: Linux pairing registry delegate implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed Windows and Mac compile errors. Created 7 years, 6 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 | « remoting/protocol/pairing_registry_unittest.cc ('k') | remoting/protocol/protocol_mock_objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/protocol_mock_objects.h
diff --git a/remoting/protocol/protocol_mock_objects.h b/remoting/protocol/protocol_mock_objects.h
index 0f1e24d85ce1d9faa2f202df68e689730864eaa0..84960fdc8ad055802fd99372d243e7cabb7eb331 100644
--- a/remoting/protocol/protocol_mock_objects.h
+++ b/remoting/protocol/protocol_mock_objects.h
@@ -211,23 +211,22 @@ class MockPairingRegistryDelegate : public PairingRegistry::Delegate {
MockPairingRegistryDelegate();
virtual ~MockPairingRegistryDelegate();
- const PairingRegistry::PairedClients& paired_clients() const {
- return paired_clients_;
+ const std::string& pairings_json() const {
+ return pairings_json_;
}
// PairingRegistry::Delegate implementation.
- virtual void AddPairing(
- const PairingRegistry::Pairing& new_paired_client,
- const PairingRegistry::AddPairingCallback& callback) OVERRIDE;
- virtual void GetPairing(
- const std::string& client_id,
- const PairingRegistry::GetPairingCallback& callback) OVERRIDE;
+ virtual void Save(
+ const std::string& pairings_json,
+ const PairingRegistry::SaveCallback& callback) OVERRIDE;
+ virtual void Load(
+ const PairingRegistry::LoadCallback& callback) OVERRIDE;
void RunCallback();
private:
- base::Closure saved_callback_;
- PairingRegistry::PairedClients paired_clients_;
+ base::Closure load_callback_;
+ std::string pairings_json_;
};
} // namespace protocol
« no previous file with comments | « remoting/protocol/pairing_registry_unittest.cc ('k') | remoting/protocol/protocol_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698