| OLD | NEW |
| 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 // we can use for comparison against our blacklist (which uses only env vars). | 214 // we can use for comparison against our blacklist (which uses only env vars). |
| 215 // NOTE: The vector will not contain an exhaustive list of environment | 215 // NOTE: The vector will not contain an exhaustive list of environment |
| 216 // variables, only the ones currently found on the blacklist or ones that are | 216 // variables, only the ones currently found on the blacklist or ones that are |
| 217 // likely to appear there. | 217 // likely to appear there. |
| 218 void PreparePathMappings(); | 218 void PreparePathMappings(); |
| 219 | 219 |
| 220 // For a given |module|, collapse the path from c:\windows to %systemroot%, | 220 // For a given |module|, collapse the path from c:\windows to %systemroot%, |
| 221 // based on the |path_mapping_| vector. | 221 // based on the |path_mapping_| vector. |
| 222 void CollapsePath(Module* module); | 222 void CollapsePath(Module* module); |
| 223 | 223 |
| 224 // Annotate any known third party modules with actions the user can take. |
| 225 void AnnotateBadModules(); |
| 226 |
| 224 // Reports (via UMA) a handful of high-level metrics regarding third party | 227 // Reports (via UMA) a handful of high-level metrics regarding third party |
| 225 // modules in this process. Called by ScanImplFinish. | 228 // modules in this process. Called by ScanImplFinish. |
| 226 void ReportThirdPartyMetrics(); | 229 void ReportThirdPartyMetrics(); |
| 227 | 230 |
| 228 // The typedef for the vector that maps a regular file path to %env_var%. | 231 // The typedef for the vector that maps a regular file path to %env_var%. |
| 229 typedef std::vector<std::pair<base::string16, base::string16>> PathMapping; | 232 typedef std::vector<std::pair<base::string16, base::string16>> PathMapping; |
| 230 | 233 |
| 231 // The vector of paths to %env_var%, used to account for differences in | 234 // The vector of paths to %env_var%, used to account for differences in |
| 232 // where people keep there files, c:\windows vs. d:\windows, etc. | 235 // where people keep there files, c:\windows vs. d:\windows, etc. |
| 233 PathMapping path_mapping_; | 236 PathMapping path_mapping_; |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 // The number of suspected bad modules (not including confirmed bad ones) | 386 // The number of suspected bad modules (not including confirmed bad ones) |
| 384 // found during last scan. Only modified on the UI thread. | 387 // found during last scan. Only modified on the UI thread. |
| 385 int suspected_bad_modules_detected_; | 388 int suspected_bad_modules_detected_; |
| 386 | 389 |
| 387 base::ObserverList<Observer> observers_; | 390 base::ObserverList<Observer> observers_; |
| 388 | 391 |
| 389 DISALLOW_COPY_AND_ASSIGN(EnumerateModulesModel); | 392 DISALLOW_COPY_AND_ASSIGN(EnumerateModulesModel); |
| 390 }; | 393 }; |
| 391 | 394 |
| 392 #endif // CHROME_BROWSER_WIN_ENUMERATE_MODULES_MODEL_H_ | 395 #endif // CHROME_BROWSER_WIN_ENUMERATE_MODULES_MODEL_H_ |
| OLD | NEW |