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

Unified Diff: chrome/browser/component_updater/sw_reporter_installer_win.h

Issue 333193002: Adding a SW reporter component updater (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bringing back ID instead of static bool. Created 6 years, 6 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
Index: chrome/browser/component_updater/sw_reporter_installer_win.h
diff --git a/chrome/browser/component_updater/sw_reporter_installer_win.h b/chrome/browser/component_updater/sw_reporter_installer_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..7b2963b49c1809cb36541fa148fe445a3fd51e75
--- /dev/null
+++ b/chrome/browser/component_updater/sw_reporter_installer_win.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_COMPONENT_UPDATER_SW_REPORTER_INSTALLER_WIN_H_
+#define CHROME_BROWSER_COMPONENT_UPDATER_SW_REPORTER_INSTALLER_WIN_H_
+
+class PrefRegistrySimple;
+class PrefService;
+
+namespace component_updater {
+
+class ComponentUpdateService;
+
+// Execute the SwReporter if one is available, otherwise 1) register with the
+// component updater, 2) save a preference in |prefs| identifying that an
+// attempt to execute the reporter tool was made, so that calls to
+// ExecutePending below will be able to continue the work if it doesn't complete
+// before the Chrome session ends. It will also allow the component updater to
+// know if there is a pending execution or not when an update happens.
Sorin Jianu 2014/06/20 05:37:39 Do we need to make any statements about the thread
MAD 2014/06/20 14:40:15 Done.
+void ExecuteSwReporter(ComponentUpdateService* cus, PrefService* prefs);
+
+// ExecutePending will only register/execute the SwReporter if a preference is
+// set in |prefs|, identifying that an attempt to register/execute the
+// SwReporter has already been made by calling ExecuteSwReporter above. But only
+// if the max number of retries has not been reached yet.
+void ExecutePendingSwReporter(ComponentUpdateService* cus, PrefService* prefs);
+
+// Register user preferences related to the SwReporter.
+void RegisterPrefsForSwReporter(PrefRegistrySimple* registry);
+
+} // namespace component_updater
+
+#endif // CHROME_BROWSER_COMPONENT_UPDATER_SW_REPORTER_INSTALLER_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698