| 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/component_updater/component_updater_ping_manager.h" | 5 #include "components/component_updater/component_updater_ping_manager.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" |
| 15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/sequenced_task_runner.h" | 17 #include "base/sequenced_task_runner.h" |
| 17 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
| 18 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
| 19 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
| 20 #include "base/threading/thread_checker.h" | 21 #include "base/threading/thread_checker.h" |
| 21 #include "components/component_updater/component_updater_configurator.h" | 22 #include "components/component_updater/component_updater_configurator.h" |
| 22 #include "components/component_updater/component_updater_utils.h" | 23 #include "components/component_updater/component_updater_utils.h" |
| 23 #include "components/component_updater/crx_update_item.h" | 24 #include "components/component_updater/crx_update_item.h" |
| 24 #include "components/component_updater/request_sender.h" | 25 #include "components/component_updater/request_sender.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 | 204 |
| 204 // Sends a fire and forget ping when the updates are complete. The ping | 205 // Sends a fire and forget ping when the updates are complete. The ping |
| 205 // sender object self-deletes after sending the ping has completed asynchrously. | 206 // sender object self-deletes after sending the ping has completed asynchrously. |
| 206 void PingManager::OnUpdateComplete(const CrxUpdateItem* item) { | 207 void PingManager::OnUpdateComplete(const CrxUpdateItem* item) { |
| 207 PingSender* ping_sender(new PingSender(config_)); | 208 PingSender* ping_sender(new PingSender(config_)); |
| 208 if (!ping_sender->SendPing(item)) | 209 if (!ping_sender->SendPing(item)) |
| 209 delete ping_sender; | 210 delete ping_sender; |
| 210 } | 211 } |
| 211 | 212 |
| 212 } // namespace component_updater | 213 } // namespace component_updater |
| OLD | NEW |