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 "chrome/browser/component_updater/component_updater_ping_manager.h" | 5 #include "chrome/browser/component_updater/component_updater_ping_manager.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/guid.h" | 8 #include "base/guid.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 : ping_url_(ping_url), | 177 : ping_url_(ping_url), |
178 url_request_context_getter_(url_request_context_getter) { | 178 url_request_context_getter_(url_request_context_getter) { |
179 } | 179 } |
180 | 180 |
181 PingManager::~PingManager() { | 181 PingManager::~PingManager() { |
182 } | 182 } |
183 | 183 |
184 // Sends a fire and forget ping when the updates are complete. The ping | 184 // Sends a fire and forget ping when the updates are complete. The ping |
185 // sender object self-deletes after sending the ping. | 185 // sender object self-deletes after sending the ping. |
186 void PingManager::OnUpdateComplete(const CrxUpdateItem* item) { | 186 void PingManager::OnUpdateComplete(const CrxUpdateItem* item) { |
187 component_updater::PingSender* ping_sender(new PingSender); | 187 PingSender* ping_sender(new PingSender); |
188 ping_sender->SendPing(ping_url_, url_request_context_getter_, item); | 188 ping_sender->SendPing(ping_url_, url_request_context_getter_, item); |
189 } | 189 } |
190 | 190 |
191 } // namespace component_updater | 191 } // namespace component_updater |
192 | 192 |
OLD | NEW |