| 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 #include "google_apis/gcm/engine/mcs_client.h" | 5 #include "google_apis/gcm/engine/mcs_client.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" |
| 10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 11 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 12 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/time/clock.h" | 14 #include "base/time/clock.h" |
| 14 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 15 #include "google_apis/gcm/base/mcs_util.h" | 16 #include "google_apis/gcm/base/mcs_util.h" |
| 16 #include "google_apis/gcm/base/socket_stream.h" | 17 #include "google_apis/gcm/base/socket_stream.h" |
| 17 #include "google_apis/gcm/engine/connection_factory.h" | 18 #include "google_apis/gcm/engine/connection_factory.h" |
| 18 #include "google_apis/gcm/monitoring/gcm_stats_recorder.h" | 19 #include "google_apis/gcm/monitoring/gcm_stats_recorder.h" |
| 19 | 20 |
| (...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 reinterpret_cast<mcs_proto::DataMessageStanza*>(packet->protobuf.get()); | 898 reinterpret_cast<mcs_proto::DataMessageStanza*>(packet->protobuf.get()); |
| 898 CollapseKey collapse_key(*data_message); | 899 CollapseKey collapse_key(*data_message); |
| 899 if (collapse_key.IsValid()) | 900 if (collapse_key.IsValid()) |
| 900 collapse_key_map_.erase(collapse_key); | 901 collapse_key_map_.erase(collapse_key); |
| 901 } | 902 } |
| 902 | 903 |
| 903 return packet; | 904 return packet; |
| 904 } | 905 } |
| 905 | 906 |
| 906 } // namespace gcm | 907 } // namespace gcm |
| OLD | NEW |