| 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> |
| 11 | 11 |
| 12 #include "base/time/default_clock.h" |
| 12 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 13 #include "components/gcm_driver/gcm_activity.h" | 14 #include "components/gcm_driver/gcm_activity.h" |
| 14 #include "google_apis/gcm/engine/connection_factory.h" | 15 #include "google_apis/gcm/engine/connection_factory.h" |
| 15 #include "google_apis/gcm/engine/mcs_client.h" | 16 #include "google_apis/gcm/engine/mcs_client.h" |
| 16 #include "google_apis/gcm/engine/registration_request.h" | 17 #include "google_apis/gcm/engine/registration_request.h" |
| 17 #include "google_apis/gcm/engine/unregistration_request.h" | 18 #include "google_apis/gcm/engine/unregistration_request.h" |
| 18 #include "google_apis/gcm/monitoring/gcm_stats_recorder.h" | 19 #include "google_apis/gcm/monitoring/gcm_stats_recorder.h" |
| 19 | 20 |
| 20 namespace gcm { | 21 namespace gcm { |
| 21 | 22 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 141 |
| 141 bool is_recording_; | 142 bool is_recording_; |
| 142 Delegate* delegate_; | 143 Delegate* delegate_; |
| 143 | 144 |
| 144 std::deque<CheckinActivity> checkin_activities_; | 145 std::deque<CheckinActivity> checkin_activities_; |
| 145 std::deque<ConnectionActivity> connection_activities_; | 146 std::deque<ConnectionActivity> connection_activities_; |
| 146 std::deque<RegistrationActivity> registration_activities_; | 147 std::deque<RegistrationActivity> registration_activities_; |
| 147 std::deque<ReceivingActivity> receiving_activities_; | 148 std::deque<ReceivingActivity> receiving_activities_; |
| 148 std::deque<SendingActivity> sending_activities_; | 149 std::deque<SendingActivity> sending_activities_; |
| 149 | 150 |
| 151 scoped_ptr<base::Clock> clock_; |
| 152 int64 last_data_message_received_timestamp_; |
| 153 |
| 150 DISALLOW_COPY_AND_ASSIGN(GCMStatsRecorderImpl); | 154 DISALLOW_COPY_AND_ASSIGN(GCMStatsRecorderImpl); |
| 151 }; | 155 }; |
| 152 | 156 |
| 153 } // namespace gcm | 157 } // namespace gcm |
| 154 | 158 |
| 155 #endif // COMPONENTS_GCM_DRIVER_GCM_STATS_RECORDER_IMPL_H_ | 159 #endif // COMPONENTS_GCM_DRIVER_GCM_STATS_RECORDER_IMPL_H_ |
| OLD | NEW |