OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ |
6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ | 6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
223 // Callback for persisting device credentials in the |gcm_store_|. | 223 // Callback for persisting device credentials in the |gcm_store_|. |
224 void SetDeviceCredentialsCallback(bool success); | 224 void SetDeviceCredentialsCallback(bool success); |
225 | 225 |
226 // Callback for persisting registration info in the |gcm_store_|. | 226 // Callback for persisting registration info in the |gcm_store_|. |
227 void UpdateRegistrationCallback(bool success); | 227 void UpdateRegistrationCallback(bool success); |
228 | 228 |
229 // Callback for all store operations that do not try to recover, if write in | 229 // Callback for all store operations that do not try to recover, if write in |
230 // |gcm_store_| fails. | 230 // |gcm_store_| fails. |
231 void DefaultStoreCallback(bool success); | 231 void DefaultStoreCallback(bool success); |
232 | 232 |
233 // Callback for store operation where result does not mapper. | |
Nicolas Zea
2014/11/07 22:19:25
nit: mapper -> matter
fgorski
2014/11/07 22:57:02
Done.
| |
234 void IgnoreWriteResultCallback(bool success); | |
235 | |
233 // Completes the registration request. | 236 // Completes the registration request. |
234 void OnRegisterCompleted(const std::string& app_id, | 237 void OnRegisterCompleted(const std::string& app_id, |
235 const std::vector<std::string>& sender_ids, | 238 const std::vector<std::string>& sender_ids, |
236 RegistrationRequest::Status status, | 239 RegistrationRequest::Status status, |
237 const std::string& registration_id); | 240 const std::string& registration_id); |
238 | 241 |
239 // Completes the unregistration request. | 242 // Completes the unregistration request. |
240 void OnUnregisterCompleted(const std::string& app_id, | 243 void OnUnregisterCompleted(const std::string& app_id, |
241 UnregistrationRequest::Status status); | 244 UnregistrationRequest::Status status); |
242 | 245 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
320 | 323 |
321 // Factory for creating references in callbacks. | 324 // Factory for creating references in callbacks. |
322 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; | 325 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; |
323 | 326 |
324 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); | 327 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); |
325 }; | 328 }; |
326 | 329 |
327 } // namespace gcm | 330 } // namespace gcm |
328 | 331 |
329 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ | 332 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ |
OLD | NEW |