OLD | NEW |
---|---|
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 Loading... | |
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 recording and a new activity has just | |
Nicolas Zea
2014/05/07 17:15:07
being recording -> being recorded
juyik
2014/05/07 18:45:51
Done.
| |
161 // 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 Loading... | |
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_ |
OLD | NEW |