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

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

Issue 2822433003: Cleanup Tool WebUI: Add functionality to the Scan button (Closed)
Patch Set: Add WeakPtrFactory 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/component_updater/sw_reporter_installer_win.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 (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_BROWSER_COMPONENT_UPDATER_SW_REPORTER_INSTALLER_WIN_H_ 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_SW_REPORTER_INSTALLER_WIN_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_SW_REPORTER_INSTALLER_WIN_H_ 6 #define CHROME_BROWSER_COMPONENT_UPDATER_SW_REPORTER_INSTALLER_WIN_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 25
26 namespace user_prefs { 26 namespace user_prefs {
27 class PrefRegistrySyncable; 27 class PrefRegistrySyncable;
28 } 28 }
29 29
30 namespace component_updater { 30 namespace component_updater {
31 31
32 class ComponentUpdateService; 32 class ComponentUpdateService;
33 33
34 constexpr char kSwReporterComponentId[] = "gkmgaooipdjhmangpemjhigmamcehddo";
35
34 // These MUST match the values for SwReporterExperimentError in histograms.xml. 36 // These MUST match the values for SwReporterExperimentError in histograms.xml.
35 // Exposed for testing. 37 // Exposed for testing.
36 enum SwReporterExperimentError { 38 enum SwReporterExperimentError {
37 SW_REPORTER_EXPERIMENT_ERROR_BAD_TAG = 0, 39 SW_REPORTER_EXPERIMENT_ERROR_BAD_TAG = 0,
38 SW_REPORTER_EXPERIMENT_ERROR_BAD_PARAMS = 1, 40 SW_REPORTER_EXPERIMENT_ERROR_BAD_PARAMS = 1,
39 SW_REPORTER_EXPERIMENT_ERROR_MAX, 41 SW_REPORTER_EXPERIMENT_ERROR_MAX,
40 }; 42 };
41 43
42 // Callback for running the software reporter after it is downloaded. 44 // Callback for running the software reporter after it is downloaded.
43 using SwReporterRunner = 45 using SwReporterRunner =
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // SwReporter. 86 // SwReporter.
85 void RegisterSwReporterComponent(ComponentUpdateService* cus); 87 void RegisterSwReporterComponent(ComponentUpdateService* cus);
86 88
87 // Register local state preferences related to the SwReporter. 89 // Register local state preferences related to the SwReporter.
88 void RegisterPrefsForSwReporter(PrefRegistrySimple* registry); 90 void RegisterPrefsForSwReporter(PrefRegistrySimple* registry);
89 91
90 // Register profile preferences related to the SwReporter. 92 // Register profile preferences related to the SwReporter.
91 void RegisterProfilePrefsForSwReporter( 93 void RegisterProfilePrefsForSwReporter(
92 user_prefs::PrefRegistrySyncable* registry); 94 user_prefs::PrefRegistrySyncable* registry);
93 95
96 // Called by chrome://cleanup/ to manually trigger a reporter run.
97 // TODO(proberge): Replace the Closure with a typed callback.
98 void RegisterUserInitiatedSwReporterScan(base::Closure callback);
99
94 } // namespace component_updater 100 } // namespace component_updater
95 101
96 #endif // CHROME_BROWSER_COMPONENT_UPDATER_SW_REPORTER_INSTALLER_WIN_H_ 102 #endif // CHROME_BROWSER_COMPONENT_UPDATER_SW_REPORTER_INSTALLER_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/component_updater/sw_reporter_installer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698