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

Side by Side Diff: chrome/browser/services/gcm/gcm_service.h

Issue 285623002: Rename GCMClient::Load to GCMClient::Start (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch Created 6 years, 7 months 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 | Annotate | Revision Log
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 CHROME_BROWSER_SERVICES_GCM_GCM_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SERVICES_GCM_GCM_SERVICE_H_
6 #define CHROME_BROWSER_SERVICES_GCM_GCM_SERVICE_H_ 6 #define CHROME_BROWSER_SERVICES_GCM_GCM_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 private: 124 private:
125 friend class TestGCMServiceWrapper; 125 friend class TestGCMServiceWrapper;
126 friend class extensions::ExtensionGCMAppHandlerTest; 126 friend class extensions::ExtensionGCMAppHandlerTest;
127 127
128 class DelayedTaskController; 128 class DelayedTaskController;
129 class IOWorker; 129 class IOWorker;
130 130
131 typedef std::map<std::string, GCMAppHandler*> GCMAppHandlerMap; 131 typedef std::map<std::string, GCMAppHandler*> GCMAppHandlerMap;
132 132
133 // Ensures that the GCMClient is loaded and the GCM check-in is done if the 133 // Ensures that the GCMClient is started and the GCM check-in is done if the
134 // |identity_provider_| is able to supply an account ID. 134 // |identity_provider_| is able to supply an account ID.
135 void EnsureLoaded(); 135 void EnsureStarted();
136 136
137 // Remove cached data when GCM service is stopped. 137 // Remove cached data when GCM service is stopped.
138 void RemoveCachedData(); 138 void RemoveCachedData();
139 139
140 // Checks out of GCM and erases any cached and persisted data. 140 // Checks out of GCM and erases any cached and persisted data.
141 void CheckOut(); 141 void CheckOut();
142 142
143 // Ensures that the app is ready for GCM functions and events. 143 // Ensures that the app is ready for GCM functions and events.
144 GCMClient::Result EnsureAppReady(const std::string& app_id); 144 GCMClient::Result EnsureAppReady(const std::string& app_id);
145 145
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 // Used to pass a weak pointer to the IO worker. 209 // Used to pass a weak pointer to the IO worker.
210 base::WeakPtrFactory<GCMService> weak_ptr_factory_; 210 base::WeakPtrFactory<GCMService> weak_ptr_factory_;
211 211
212 DISALLOW_COPY_AND_ASSIGN(GCMService); 212 DISALLOW_COPY_AND_ASSIGN(GCMService);
213 }; 213 };
214 214
215 } // namespace gcm 215 } // namespace gcm
216 216
217 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_SERVICE_H_ 217 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/services/gcm/gcm_profile_service_unittest.cc ('k') | chrome/browser/services/gcm/gcm_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698