| 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 |  | 
| 227   // Reports (via UMA) a handful of high-level metrics regarding third party | 224   // Reports (via UMA) a handful of high-level metrics regarding third party | 
| 228   // modules in this process. Called by ScanImplFinish. | 225   // modules in this process. Called by ScanImplFinish. | 
| 229   void ReportThirdPartyMetrics(); | 226   void ReportThirdPartyMetrics(); | 
| 230 | 227 | 
| 231   // The typedef for the vector that maps a regular file path to %env_var%. | 228   // The typedef for the vector that maps a regular file path to %env_var%. | 
| 232   typedef std::vector<std::pair<base::string16, base::string16>> PathMapping; | 229   typedef std::vector<std::pair<base::string16, base::string16>> PathMapping; | 
| 233 | 230 | 
| 234   // The vector of paths to %env_var%, used to account for differences in | 231   // The vector of paths to %env_var%, used to account for differences in | 
| 235   // where people keep there files, c:\windows vs. d:\windows, etc. | 232   // where people keep there files, c:\windows vs. d:\windows, etc. | 
| 236   PathMapping path_mapping_; | 233   PathMapping path_mapping_; | 
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 386   // The number of suspected bad modules (not including confirmed bad ones) | 383   // The number of suspected bad modules (not including confirmed bad ones) | 
| 387   // found during last scan. Only modified on the UI thread. | 384   // found during last scan. Only modified on the UI thread. | 
| 388   int suspected_bad_modules_detected_; | 385   int suspected_bad_modules_detected_; | 
| 389 | 386 | 
| 390   base::ObserverList<Observer> observers_; | 387   base::ObserverList<Observer> observers_; | 
| 391 | 388 | 
| 392   DISALLOW_COPY_AND_ASSIGN(EnumerateModulesModel); | 389   DISALLOW_COPY_AND_ASSIGN(EnumerateModulesModel); | 
| 393 }; | 390 }; | 
| 394 | 391 | 
| 395 #endif  // CHROME_BROWSER_WIN_ENUMERATE_MODULES_MODEL_H_ | 392 #endif  // CHROME_BROWSER_WIN_ENUMERATE_MODULES_MODEL_H_ | 
| OLD | NEW | 
|---|