blob: e48ae05e9e21607bb40f23d0d0278fb6a3449c2d [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
[email protected]de0fdca22014-08-19 05:26:095#ifndef COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_
6#define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_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
[email protected]7b0529242013-07-20 05:45:4610namespace component_updater {
11
[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);
[email protected]7b0529242013-07-20 05:45:4620 ~PingManager();
21
22 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
30} // namespace component_updater
31
[email protected]de0fdca22014-08-19 05:26:0932#endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_