| OLD | NEW |
| 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_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ |
| 6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ | 6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 public: | 117 public: |
| 118 GCMStatistics(); | 118 GCMStatistics(); |
| 119 GCMStatistics(const GCMStatistics& other); | 119 GCMStatistics(const GCMStatistics& other); |
| 120 ~GCMStatistics(); | 120 ~GCMStatistics(); |
| 121 | 121 |
| 122 bool is_recording; | 122 bool is_recording; |
| 123 bool gcm_client_created; | 123 bool gcm_client_created; |
| 124 std::string gcm_client_state; | 124 std::string gcm_client_state; |
| 125 bool connection_client_created; | 125 bool connection_client_created; |
| 126 std::string connection_state; | 126 std::string connection_state; |
| 127 base::Time last_checkin; |
| 128 base::Time next_checkin; |
| 127 uint64_t android_id; | 129 uint64_t android_id; |
| 128 std::vector<std::string> registered_app_ids; | 130 std::vector<std::string> registered_app_ids; |
| 129 int send_queue_size; | 131 int send_queue_size; |
| 130 int resend_queue_size; | 132 int resend_queue_size; |
| 131 | 133 |
| 132 RecordedActivities recorded_activities; | 134 RecordedActivities recorded_activities; |
| 133 }; | 135 }; |
| 134 | 136 |
| 135 // Information about account. | 137 // Information about account. |
| 136 struct AccountTokenInfo { | 138 struct AccountTokenInfo { |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 // to be set, and allows that component to later revoke the setting. It should | 326 // to be set, and allows that component to later revoke the setting. It should |
| 325 // be unique. | 327 // be unique. |
| 326 virtual void AddHeartbeatInterval(const std::string& scope, | 328 virtual void AddHeartbeatInterval(const std::string& scope, |
| 327 int interval_ms) = 0; | 329 int interval_ms) = 0; |
| 328 virtual void RemoveHeartbeatInterval(const std::string& scope) = 0; | 330 virtual void RemoveHeartbeatInterval(const std::string& scope) = 0; |
| 329 }; | 331 }; |
| 330 | 332 |
| 331 } // namespace gcm | 333 } // namespace gcm |
| 332 | 334 |
| 333 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ | 335 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ |
| OLD | NEW |