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

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

Issue 710903002: Revert of [GCM] Fetching OAuth2 tokens periodically in account tracker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mapper-in-driver
Patch Set: 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 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/services/gcm/gcm_account_tracker_unittest.cc ('k') | components/gcm_driver/gcm_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698