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

Side by Side Diff: components/gcm_driver/gcm_client_impl.h

Issue 631343002: [GCM] Fetching OAuth2 tokens periodically in account tracker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mapper-in-driver
Patch Set: Ignoring result of write in setlasttokenfetchtime to fix sync_integration_tests Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698