[email protected] | de0fdca2 | 2014-08-19 05:26:09 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
[email protected] | 7b052924 | 2013-07-20 05:45:46 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
sorin | 52ac088 | 2015-01-24 01:15:00 | [diff] [blame] | 5 | #ifndef COMPONENTS_UPDATE_CLIENT_PING_MANAGER_H_ |
6 | #define COMPONENTS_UPDATE_CLIENT_PING_MANAGER_H_ | ||||
[email protected] | 7b052924 | 2013-07-20 05:45:46 | [diff] [blame] | 7 | |
sorin | 5cb1f549 | 2014-09-23 04:07:44 | [diff] [blame] | 8 | #include "base/macros.h" |
[email protected] | 7b052924 | 2013-07-20 05:45:46 | [diff] [blame] | 9 | |
sorin | 52ac088 | 2015-01-24 01:15:00 | [diff] [blame] | 10 | namespace update_client { |
[email protected] | 7b052924 | 2013-07-20 05:45:46 | [diff] [blame] | 11 | |
[email protected] | 0997403 | 2014-06-27 07:42:08 | [diff] [blame] | 12 | class Configurator; |
[email protected] | 3a0092d | 2013-12-18 03:04:35 | [diff] [blame] | 13 | struct CrxUpdateItem; |
14 | |||||
[email protected] | 7b052924 | 2013-07-20 05:45:46 | [diff] [blame] | 15 | // Provides an event sink for completion events from ComponentUpdateService |
16 | // and sends fire-and-forget pings when handling these events. | ||||
17 | class PingManager { | ||||
18 | public: | ||||
[email protected] | 0997403 | 2014-06-27 07:42:08 | [diff] [blame] | 19 | explicit PingManager(const Configurator& config); |
sorin | 9797aba | 2015-04-17 17:15:03 | [diff] [blame] | 20 | virtual ~PingManager(); |
[email protected] | 7b052924 | 2013-07-20 05:45:46 | [diff] [blame] | 21 | |
sorin | 9797aba | 2015-04-17 17:15:03 | [diff] [blame] | 22 | virtual void OnUpdateComplete(const CrxUpdateItem* item); |
[email protected] | d0c8b8b4 | 2014-05-06 05:11:45 | [diff] [blame] | 23 | |
[email protected] | 7b052924 | 2013-07-20 05:45:46 | [diff] [blame] | 24 | private: |
[email protected] | 0997403 | 2014-06-27 07:42:08 | [diff] [blame] | 25 | const Configurator& config_; |
[email protected] | 7b052924 | 2013-07-20 05:45:46 | [diff] [blame] | 26 | |
27 | DISALLOW_COPY_AND_ASSIGN(PingManager); | ||||
28 | }; | ||||
29 | |||||
sorin | 52ac088 | 2015-01-24 01:15:00 | [diff] [blame] | 30 | } // namespace update_client |
[email protected] | 7b052924 | 2013-07-20 05:45:46 | [diff] [blame] | 31 | |
sorin | 52ac088 | 2015-01-24 01:15:00 | [diff] [blame] | 32 | #endif // COMPONENTS_UPDATE_CLIENT_PING_MANAGER_H_ |