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

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

Issue 266913015: 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
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 the GCMClient is recording activities and a new activity has
jianli 2014/05/06 22:54:53 Should we mention "the GCMClient is recording acti
juyik 2014/05/07 00:07:48 Done.
161 // just been recorded.
162 virtual void OnActivityRecorded() = 0;
159 }; 163 };
160 164
161 GCMClient(); 165 GCMClient();
162 virtual ~GCMClient(); 166 virtual ~GCMClient();
163 167
164 // Begins initialization of the GCM Client. This will not trigger a 168 // Begins initialization of the GCM Client. This will not trigger a
165 // connection. 169 // connection.
166 // |chrome_build_proto|: chrome info, i.e., version, channel and etc. 170 // |chrome_build_proto|: chrome info, i.e., version, channel and etc.
167 // |store_path|: path to the GCM store. 171 // |store_path|: path to the GCM store.
168 // |account_ids|: account IDs to be related to the device when checking in. 172 // |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
221 // Clear all recorded GCM activity logs. 225 // Clear all recorded GCM activity logs.
222 virtual void ClearActivityLogs() = 0; 226 virtual void ClearActivityLogs() = 0;
223 227
224 // Gets internal states and statistics. 228 // Gets internal states and statistics.
225 virtual GCMStatistics GetStatistics() const = 0; 229 virtual GCMStatistics GetStatistics() const = 0;
226 }; 230 };
227 231
228 } // namespace gcm 232 } // namespace gcm
229 233
230 #endif // GOOGLE_APIS_GCM_GCM_CLIENT_H_ 234 #endif // GOOGLE_APIS_GCM_GCM_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698