| 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 matter. | |
| 234 void IgnoreWriteResultCallback(bool success); | |
| 235 | |
| 236 // Completes the registration request. | 233 // Completes the registration request. |
| 237 void OnRegisterCompleted(const std::string& app_id, | 234 void OnRegisterCompleted(const std::string& app_id, |
| 238 const std::vector<std::string>& sender_ids, | 235 const std::vector<std::string>& sender_ids, |
| 239 RegistrationRequest::Status status, | 236 RegistrationRequest::Status status, |
| 240 const std::string& registration_id); | 237 const std::string& registration_id); |
| 241 | 238 |
| 242 // Completes the unregistration request. | 239 // Completes the unregistration request. |
| 243 void OnUnregisterCompleted(const std::string& app_id, | 240 void OnUnregisterCompleted(const std::string& app_id, |
| 244 UnregistrationRequest::Status status); | 241 UnregistrationRequest::Status status); |
| 245 | 242 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 320 |
| 324 // Factory for creating references in callbacks. | 321 // Factory for creating references in callbacks. |
| 325 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; | 322 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; |
| 326 | 323 |
| 327 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); | 324 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); |
| 328 }; | 325 }; |
| 329 | 326 |
| 330 } // namespace gcm | 327 } // namespace gcm |
| 331 | 328 |
| 332 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ | 329 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ |
| OLD | NEW |