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

Side by Side Diff: chrome/browser/win/enumerate_modules_model.h

Issue 2564273002: Merge M55: Annotate Trusteer Rapport < 3.6 as incompatible with Chrome. (Closed)
Patch Set: Created 4 years 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/win/enumerate_modules_model.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_WIN_ENUMERATE_MODULES_MODEL_H_ 5 #ifndef CHROME_BROWSER_WIN_ENUMERATE_MODULES_MODEL_H_
6 #define CHROME_BROWSER_WIN_ENUMERATE_MODULES_MODEL_H_ 6 #define CHROME_BROWSER_WIN_ENUMERATE_MODULES_MODEL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // we can use for comparison against our blacklist (which uses only env vars). 194 // we can use for comparison against our blacklist (which uses only env vars).
195 // NOTE: The vector will not contain an exhaustive list of environment 195 // NOTE: The vector will not contain an exhaustive list of environment
196 // variables, only the ones currently found on the blacklist or ones that are 196 // variables, only the ones currently found on the blacklist or ones that are
197 // likely to appear there. 197 // likely to appear there.
198 void PreparePathMappings(); 198 void PreparePathMappings();
199 199
200 // For a given |module|, collapse the path from c:\windows to %systemroot%, 200 // For a given |module|, collapse the path from c:\windows to %systemroot%,
201 // based on the |path_mapping_| vector. 201 // based on the |path_mapping_| vector.
202 void CollapsePath(Module* module); 202 void CollapsePath(Module* module);
203 203
204 // Annotate any known third party modules with actions the user can take.
205 void AnnotateBadModules();
206
204 // Reports (via UMA) a handful of high-level metrics regarding third party 207 // Reports (via UMA) a handful of high-level metrics regarding third party
205 // modules in this process. Called by ScanImpl after modules have been 208 // modules in this process. Called by ScanImpl after modules have been
206 // enumerated and processed. 209 // enumerated and processed.
207 void ReportThirdPartyMetrics(); 210 void ReportThirdPartyMetrics();
208 211
209 // The typedef for the vector that maps a regular file path to %env_var%. 212 // The typedef for the vector that maps a regular file path to %env_var%.
210 typedef std::vector<std::pair<base::string16, base::string16>> PathMapping; 213 typedef std::vector<std::pair<base::string16, base::string16>> PathMapping;
211 214
212 // The vector of paths to %env_var%, used to account for differences in 215 // The vector of paths to %env_var%, used to account for differences in
213 // where people keep there files, c:\windows vs. d:\windows, etc. 216 // where people keep there files, c:\windows vs. d:\windows, etc.
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 // The number of suspected bad modules (not including confirmed bad ones) 350 // The number of suspected bad modules (not including confirmed bad ones)
348 // found during last scan. Only modified on the UI thread. 351 // found during last scan. Only modified on the UI thread.
349 int suspected_bad_modules_detected_; 352 int suspected_bad_modules_detected_;
350 353
351 base::ObserverList<Observer> observers_; 354 base::ObserverList<Observer> observers_;
352 355
353 DISALLOW_COPY_AND_ASSIGN(EnumerateModulesModel); 356 DISALLOW_COPY_AND_ASSIGN(EnumerateModulesModel);
354 }; 357 };
355 358
356 #endif // CHROME_BROWSER_WIN_ENUMERATE_MODULES_MODEL_H_ 359 #endif // CHROME_BROWSER_WIN_ENUMERATE_MODULES_MODEL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/win/enumerate_modules_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698