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

Side by Side Diff: components/update_client/ping_manager.h

Issue 1578083002: Implements an UpdateClient::SendUninstallPing API for the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « components/update_client/crx_update_item.h ('k') | components/update_client/ping_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_UPDATE_CLIENT_PING_MANAGER_H_ 5 #ifndef COMPONENTS_UPDATE_CLIENT_PING_MANAGER_H_
6 #define COMPONENTS_UPDATE_CLIENT_PING_MANAGER_H_ 6 #define COMPONENTS_UPDATE_CLIENT_PING_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 10
11 namespace update_client { 11 namespace update_client {
12 12
13 class Configurator; 13 class Configurator;
14 struct CrxUpdateItem; 14 struct CrxUpdateItem;
15 15
16 // Sends fire-and-forget pings. 16 // Sends fire-and-forget pings.
17 class PingManager { 17 class PingManager {
18 public: 18 public:
19 explicit PingManager(const scoped_refptr<Configurator>& config); 19 explicit PingManager(const scoped_refptr<Configurator>& config);
20 virtual ~PingManager(); 20 virtual ~PingManager();
21 21
22 virtual void OnUpdateComplete(const CrxUpdateItem* item); 22 virtual void SendPing(const CrxUpdateItem* item);
23 23
24 private: 24 private:
25 const scoped_refptr<Configurator> config_; 25 const scoped_refptr<Configurator> config_;
26 26
27 DISALLOW_COPY_AND_ASSIGN(PingManager); 27 DISALLOW_COPY_AND_ASSIGN(PingManager);
28 }; 28 };
29 29
30 } // namespace update_client 30 } // namespace update_client
31 31
32 #endif // COMPONENTS_UPDATE_CLIENT_PING_MANAGER_H_ 32 #endif // COMPONENTS_UPDATE_CLIENT_PING_MANAGER_H_
OLDNEW
« no previous file with comments | « components/update_client/crx_update_item.h ('k') | components/update_client/ping_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698