blob: 664142bdd3b0702fc8e39d9a7a6ef5c93d2e75b9 [file] [log] [blame]
[email protected]de0fdca22014-08-19 05:26:091// Copyright 2014 The Chromium Authors. All rights reserved.
[email protected]7b0529242013-07-20 05:45:462// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
sorin52ac0882015-01-24 01:15:005#ifndef COMPONENTS_UPDATE_CLIENT_PING_MANAGER_H_
6#define COMPONENTS_UPDATE_CLIENT_PING_MANAGER_H_
[email protected]7b0529242013-07-20 05:45:467
sorin5cb1f5492014-09-23 04:07:448#include "base/macros.h"
[email protected]7b0529242013-07-20 05:45:469
sorin52ac0882015-01-24 01:15:0010namespace update_client {
[email protected]7b0529242013-07-20 05:45:4611
[email protected]09974032014-06-27 07:42:0812class Configurator;
[email protected]3a0092d2013-12-18 03:04:3513struct CrxUpdateItem;
14
[email protected]7b0529242013-07-20 05:45:4615// Provides an event sink for completion events from ComponentUpdateService
16// and sends fire-and-forget pings when handling these events.
17class PingManager {
18 public:
[email protected]09974032014-06-27 07:42:0819 explicit PingManager(const Configurator& config);
sorin9797aba2015-04-17 17:15:0320 virtual ~PingManager();
[email protected]7b0529242013-07-20 05:45:4621
sorin9797aba2015-04-17 17:15:0322 virtual void OnUpdateComplete(const CrxUpdateItem* item);
[email protected]d0c8b8b42014-05-06 05:11:4523
[email protected]7b0529242013-07-20 05:45:4624 private:
[email protected]09974032014-06-27 07:42:0825 const Configurator& config_;
[email protected]7b0529242013-07-20 05:45:4626
27 DISALLOW_COPY_AND_ASSIGN(PingManager);
28};
29
sorin52ac0882015-01-24 01:15:0030} // namespace update_client
[email protected]7b0529242013-07-20 05:45:4631
sorin52ac0882015-01-24 01:15:0032#endif // COMPONENTS_UPDATE_CLIENT_PING_MANAGER_H_