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 #include "components/update_client/ping_manager.h" | 5 #include "components/update_client/ping_manager.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/bind.h" | 12 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
12 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
13 #include "base/location.h" | 15 #include "base/location.h" |
14 #include "base/logging.h" | 16 #include "base/logging.h" |
15 #include "base/macros.h" | 17 #include "base/macros.h" |
16 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 195 |
194 // Sends a fire and forget ping when the updates are complete. The ping | 196 // Sends a fire and forget ping when the updates are complete. The ping |
195 // sender object self-deletes after sending the ping has completed asynchrously. | 197 // sender object self-deletes after sending the ping has completed asynchrously. |
196 void PingManager::OnUpdateComplete(const CrxUpdateItem* item) { | 198 void PingManager::OnUpdateComplete(const CrxUpdateItem* item) { |
197 PingSender* ping_sender(new PingSender(config_)); | 199 PingSender* ping_sender(new PingSender(config_)); |
198 if (!ping_sender->SendPing(item)) | 200 if (!ping_sender->SendPing(item)) |
199 delete ping_sender; | 201 delete ping_sender; |
200 } | 202 } |
201 | 203 |
202 } // namespace update_client | 204 } // namespace update_client |
OLD | NEW |