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

Unified Diff: components/update_client/ping_manager.h

Issue 2835803002: Refactor the UpdateEngine and its actions in the component updater. (Closed)
Patch Set: feedback up to #6 Created 3 years, 8 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/ping_manager.h
diff --git a/components/update_client/ping_manager.h b/components/update_client/ping_manager.h
index c907e7df2bbf0143158145926972cfae84180527..3021a8b7bfaf6f95bc12932b650126d769778b5f 100644
--- a/components/update_client/ping_manager.h
+++ b/components/update_client/ping_manager.h
@@ -7,11 +7,12 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/threading/thread_checker.h"
namespace update_client {
class Configurator;
-struct CrxUpdateItem;
+class Component;
// Sends fire-and-forget pings.
class PingManager {
@@ -23,9 +24,11 @@ class PingManager {
// ping is queued up and may be sent in the future, or false, if an error
// occurs right away. The ping itself is not persisted and it will be
// discarded if it can't be sent for any reason.
- virtual bool SendPing(const CrxUpdateItem* item);
+ virtual bool SendPing(const Component& component);
private:
+ base::ThreadChecker thread_checker_;
+
const scoped_refptr<Configurator> config_;
DISALLOW_COPY_AND_ASSIGN(PingManager);
« 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