Home | History | Annotate | Download | only in protocol

Lines Matching refs:pairing

43   struct Pairing {
44 Pairing();
45 Pairing(const base::Time& created_time,
49 ~Pairing();
51 static Pairing Create(const std::string& client_name);
52 static Pairing CreateFromValue(const base::DictionaryValue& pairing);
56 bool operator==(const Pairing& other) const;
72 // Mapping from client id to pairing information.
73 typedef std::map<std::string, Pairing> PairedClients;
79 typedef base::Callback<void(Pairing pairing)> GetPairingCallback;
97 // Retrieves the pairing identified by |client_id|.
98 virtual Pairing Load(const std::string& client_id) = 0;
100 // Saves |pairing| to persistent storage.
101 virtual bool Save(const Pairing& pairing) = 0;
103 // Deletes the pairing identified by |client_id|.
111 // Creates a pairing for a new client and saves it to disk.
114 // so that the client isn't sent the pairing information until it has been
116 Pairing CreatePairing(const std::string& client_name);
118 // Gets the pairing for the specified client id. See the corresponding
120 // with an invalid Pairing.
127 // Delete a pairing, identified by its client ID. |callback| is called with
129 // did not match any pairing.
151 void AddPairing(const Pairing& pairing);
162 const protocol::PairingRegistry::Pairing& pairing,
173 const GetPairingCallback& callback, Pairing pairing);