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

Side by Side Diff: google_apis/gcm/gcm_client.h

Issue 273753005: Revert of Enable auto-refreshing of the gcm-internals page whenever a GCM activity is recorded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chrome/browser/services/gcm/gcm_service.cc ('k') | google_apis/gcm/gcm_client_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 GOOGLE_APIS_GCM_GCM_CLIENT_H_ 5 #ifndef GOOGLE_APIS_GCM_GCM_CLIENT_H_
6 #define GOOGLE_APIS_GCM_GCM_CLIENT_H_ 6 #define GOOGLE_APIS_GCM_GCM_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // |app_id|: application ID. 149 // |app_id|: application ID.
150 // |send_error_detials|: Details of the send error event, like mesasge ID. 150 // |send_error_detials|: Details of the send error event, like mesasge ID.
151 virtual void OnMessageSendError( 151 virtual void OnMessageSendError(
152 const std::string& app_id, 152 const std::string& app_id,
153 const SendErrorDetails& send_error_details) = 0; 153 const SendErrorDetails& send_error_details) = 0;
154 154
155 // Called when the GCM becomes ready. To get to this state, GCMClient 155 // Called when the GCM becomes ready. To get to this state, GCMClient
156 // finished loading from the GCM store and retrieved the device check-in 156 // finished loading from the GCM store and retrieved the device check-in
157 // from the server if it hadn't yet. 157 // from the server if it hadn't yet.
158 virtual void OnGCMReady() = 0; 158 virtual void OnGCMReady() = 0;
159
160 // Called when activities are being recorded and a new activity has just
161 // been recorded.
162 virtual void OnActivityRecorded() = 0;
163 }; 159 };
164 160
165 GCMClient(); 161 GCMClient();
166 virtual ~GCMClient(); 162 virtual ~GCMClient();
167 163
168 // Begins initialization of the GCM Client. This will not trigger a 164 // Begins initialization of the GCM Client. This will not trigger a
169 // connection. 165 // connection.
170 // |chrome_build_proto|: chrome info, i.e., version, channel and etc. 166 // |chrome_build_proto|: chrome info, i.e., version, channel and etc.
171 // |store_path|: path to the GCM store. 167 // |store_path|: path to the GCM store.
172 // |account_ids|: account IDs to be related to the device when checking in. 168 // |account_ids|: account IDs to be related to the device when checking in.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // Clear all recorded GCM activity logs. 221 // Clear all recorded GCM activity logs.
226 virtual void ClearActivityLogs() = 0; 222 virtual void ClearActivityLogs() = 0;
227 223
228 // Gets internal states and statistics. 224 // Gets internal states and statistics.
229 virtual GCMStatistics GetStatistics() const = 0; 225 virtual GCMStatistics GetStatistics() const = 0;
230 }; 226 };
231 227
232 } // namespace gcm 228 } // namespace gcm
233 229
234 #endif // GOOGLE_APIS_GCM_GCM_CLIENT_H_ 230 #endif // GOOGLE_APIS_GCM_GCM_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/services/gcm/gcm_service.cc ('k') | google_apis/gcm/gcm_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698