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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
13 class URLRequestContextGetter;
18 namespace component_updater {
20 // Provides an event sink for completion events from ComponentUpdateService
21 // and sends fire-and-forget pings when handling these events.
24 PingManager(const GURL& ping_url,
25 net::URLRequestContextGetter* url_request_context_getter);
28 void OnUpdateComplete(const CrxUpdateItem* item);
32 // This member is not owned by this class.
33 net::URLRequestContextGetter* url_request_context_getter_;
35 DISALLOW_COPY_AND_ASSIGN(PingManager);
38 } // namespace component_updater
40 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_