Home | History | Annotate | Download | only in component_updater
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_
      6 #define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_
      7 
      8 #include "base/macros.h"
      9 
     10 namespace component_updater {
     11 
     12 class Configurator;
     13 struct CrxUpdateItem;
     14 
     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:
     19   explicit PingManager(const Configurator& config);
     20   ~PingManager();
     21 
     22   void OnUpdateComplete(const CrxUpdateItem* item);
     23 
     24  private:
     25   const Configurator& config_;
     26 
     27   DISALLOW_COPY_AND_ASSIGN(PingManager);
     28 };
     29 
     30 }  // namespace component_updater
     31 
     32 #endif  // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_
     33