| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 ~ChromeBuildInfo(); | 96 ~ChromeBuildInfo(); |
| 97 | 97 |
| 98 ChromePlatform platform; | 98 ChromePlatform platform; |
| 99 ChromeChannel channel; | 99 ChromeChannel channel; |
| 100 std::string version; | 100 std::string version; |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 // Detailed information of the Send Error event. | 103 // Detailed information of the Send Error event. |
| 104 struct SendErrorDetails { | 104 struct SendErrorDetails { |
| 105 SendErrorDetails(); | 105 SendErrorDetails(); |
| 106 SendErrorDetails(const SendErrorDetails& other); |
| 106 ~SendErrorDetails(); | 107 ~SendErrorDetails(); |
| 107 | 108 |
| 108 std::string message_id; | 109 std::string message_id; |
| 109 MessageData additional_data; | 110 MessageData additional_data; |
| 110 Result result; | 111 Result result; |
| 111 }; | 112 }; |
| 112 | 113 |
| 113 // Internal states and activity statistics of a GCM client. | 114 // Internal states and activity statistics of a GCM client. |
| 114 struct GCMStatistics { | 115 struct GCMStatistics { |
| 115 public: | 116 public: |
| 116 GCMStatistics(); | 117 GCMStatistics(); |
| 118 GCMStatistics(const GCMStatistics& other); |
| 117 ~GCMStatistics(); | 119 ~GCMStatistics(); |
| 118 | 120 |
| 119 bool is_recording; | 121 bool is_recording; |
| 120 bool gcm_client_created; | 122 bool gcm_client_created; |
| 121 std::string gcm_client_state; | 123 std::string gcm_client_state; |
| 122 bool connection_client_created; | 124 bool connection_client_created; |
| 123 std::string connection_state; | 125 std::string connection_state; |
| 124 uint64_t android_id; | 126 uint64_t android_id; |
| 125 std::vector<std::string> registered_app_ids; | 127 std::vector<std::string> registered_app_ids; |
| 126 int send_queue_size; | 128 int send_queue_size; |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 // to be set, and allows that component to later revoke the setting. It should | 323 // to be set, and allows that component to later revoke the setting. It should |
| 322 // be unique. | 324 // be unique. |
| 323 virtual void AddHeartbeatInterval(const std::string& scope, | 325 virtual void AddHeartbeatInterval(const std::string& scope, |
| 324 int interval_ms) = 0; | 326 int interval_ms) = 0; |
| 325 virtual void RemoveHeartbeatInterval(const std::string& scope) = 0; | 327 virtual void RemoveHeartbeatInterval(const std::string& scope) = 0; |
| 326 }; | 328 }; |
| 327 | 329 |
| 328 } // namespace gcm | 330 } // namespace gcm |
| 329 | 331 |
| 330 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ | 332 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ |
| OLD | NEW |