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_STATS_RECORDER_IMPL_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_STATS_RECORDER_IMPL_H_ |
6 #define COMPONENTS_GCM_DRIVER_GCM_STATS_RECORDER_IMPL_H_ | 6 #define COMPONENTS_GCM_DRIVER_GCM_STATS_RECORDER_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 void RecordCheckinDelayedDueToBackoff(int64 delay_msec) override; | 48 void RecordCheckinDelayedDueToBackoff(int64 delay_msec) override; |
49 void RecordCheckinSuccess() override; | 49 void RecordCheckinSuccess() override; |
50 void RecordCheckinFailure(std::string status, bool will_retry) override; | 50 void RecordCheckinFailure(std::string status, bool will_retry) override; |
51 void RecordConnectionInitiated(const std::string& host) override; | 51 void RecordConnectionInitiated(const std::string& host) override; |
52 void RecordConnectionDelayedDueToBackoff(int64 delay_msec) override; | 52 void RecordConnectionDelayedDueToBackoff(int64 delay_msec) override; |
53 void RecordConnectionSuccess() override; | 53 void RecordConnectionSuccess() override; |
54 void RecordConnectionFailure(int network_error) override; | 54 void RecordConnectionFailure(int network_error) override; |
55 void RecordConnectionResetSignaled( | 55 void RecordConnectionResetSignaled( |
56 ConnectionFactory::ConnectionResetReason reason) override; | 56 ConnectionFactory::ConnectionResetReason reason) override; |
57 void RecordRegistrationSent(const std::string& app_id, | 57 void RecordRegistrationSent(const std::string& app_id, |
58 const std::string& sender_ids) override; | 58 const std::string& senders) override; |
59 void RecordRegistrationResponse(const std::string& app_id, | 59 void RecordRegistrationResponse(const std::string& app_id, |
60 const std::vector<std::string>& sender_ids, | 60 const std::string& senders, |
61 RegistrationRequest::Status status) override; | 61 RegistrationRequest::Status status) override; |
62 void RecordRegistrationRetryRequested( | 62 void RecordRegistrationRetryRequested( |
63 const std::string& app_id, | 63 const std::string& app_id, |
64 const std::vector<std::string>& sender_ids, | 64 const std::string& senders, |
65 int retries_left) override; | 65 int retries_left) override; |
66 void RecordUnregistrationSent(const std::string& app_id) override; | 66 void RecordUnregistrationSent(const std::string& app_id) override; |
67 void RecordUnregistrationResponse( | 67 void RecordUnregistrationResponse( |
68 const std::string& app_id, | 68 const std::string& app_id, |
69 UnregistrationRequest::Status status) override; | 69 UnregistrationRequest::Status status) override; |
70 void RecordUnregistrationRetryDelayed(const std::string& app_id, | 70 void RecordUnregistrationRetryDelayed(const std::string& app_id, |
71 int64 delay_msec) override; | 71 int64 delay_msec) override; |
72 void RecordDataMessageReceived(const std::string& app_id, | 72 void RecordDataMessageReceived(const std::string& app_id, |
73 const std::string& from, | 73 const std::string& from, |
74 int message_byte_size, | 74 int message_byte_size, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 base::TimeTicks last_received_data_message_burst_start_time_; | 150 base::TimeTicks last_received_data_message_burst_start_time_; |
151 base::TimeTicks last_received_data_message_time_within_burst_; | 151 base::TimeTicks last_received_data_message_time_within_burst_; |
152 int64 received_data_message_burst_size_; | 152 int64 received_data_message_burst_size_; |
153 | 153 |
154 DISALLOW_COPY_AND_ASSIGN(GCMStatsRecorderImpl); | 154 DISALLOW_COPY_AND_ASSIGN(GCMStatsRecorderImpl); |
155 }; | 155 }; |
156 | 156 |
157 } // namespace gcm | 157 } // namespace gcm |
158 | 158 |
159 #endif // COMPONENTS_GCM_DRIVER_GCM_STATS_RECORDER_IMPL_H_ | 159 #endif // COMPONENTS_GCM_DRIVER_GCM_STATS_RECORDER_IMPL_H_ |
OLD | NEW |