Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_ | |
| 6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_ | |
| 7 | |
| 8 #include <string> | |
|
cpu_(ooo_6.6-7.5)
2013/07/15 20:22:40
don't see string needed here.
Sorin Jianu
2013/07/16 22:50:16
Done.
| |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/compiler_specific.h" | |
| 11 #include "chrome/browser/component_updater/component_updater_service_observer.h" | |
| 12 #include "url/gurl.h" | |
| 13 | |
| 14 namespace net { | |
| 15 class URLRequestContextGetter; | |
| 16 } // namespace net | |
| 17 | |
| 18 namespace component_updater { | |
| 19 | |
| 20 // Provides an event sink for completion events from ComponentUpdaterService | |
| 21 // and sends fire-and-forget pings when handling these events. | |
| 22 class PingManager : public ComponentUpdaterServiceObserver { | |
| 23 public: | |
| 24 PingManager(const GURL& ping_url, | |
| 25 net::URLRequestContextGetter* url_request_context_getter); | |
| 26 | |
| 27 virtual ~PingManager(); | |
| 28 | |
| 29 private: | |
| 30 // Overrides for ComponentUpdaterServiceObserver. | |
| 31 virtual void OnUpdateComplete(const CrxUpdateItem* item) OVERRIDE; | |
| 32 | |
| 33 const GURL ping_url_; | |
| 34 | |
| 35 // This member is not owned by this class. | |
| 36 net::URLRequestContextGetter* url_request_context_getter_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(PingManager); | |
| 39 }; | |
| 40 | |
| 41 } // namespace component_updater | |
| 42 | |
| 43 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_ | |
| 44 | |
| OLD | NEW |