Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: chrome/browser/component_updater/component_updater_ping_manager.h

Issue 18516010: Implemented completion pings for component updates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "url/gurl.h"
11
12 namespace net {
13 class URLRequestContextGetter;
14 } // namespace net
15
16 struct CrxUpdateItem;
17
18 namespace component_updater {
19
20 // Provides an event sink for completion events from ComponentUpdateService
21 // and sends fire-and-forget pings when handling these events.
22 class PingManager {
23 public:
24 PingManager(const GURL& ping_url,
25 net::URLRequestContextGetter* url_request_context_getter);
26 ~PingManager();
27
28 void OnUpdateComplete(const CrxUpdateItem* item);
29 private:
30 const GURL ping_url_;
31
32 // This member is not owned by this class.
33 net::URLRequestContextGetter* url_request_context_getter_;
34
35 DISALLOW_COPY_AND_ASSIGN(PingManager);
36 };
37
38 } // namespace component_updater
39
40 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_
41
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698