| 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_ENUMERATE_MODULES_MODEL_WIN_H_ | 5 #ifndef CHROME_BROWSER_ENUMERATE_MODULES_MODEL_WIN_H_ |
| 6 #define CHROME_BROWSER_ENUMERATE_MODULES_MODEL_WIN_H_ | 6 #define CHROME_BROWSER_ENUMERATE_MODULES_MODEL_WIN_H_ |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 326 |
| 327 // The vector containing all the modules enumerated. Will be normalized and | 327 // The vector containing all the modules enumerated. Will be normalized and |
| 328 // any bad modules will be marked. | 328 // any bad modules will be marked. |
| 329 ModuleEnumerator::ModulesVector enumerated_modules_; | 329 ModuleEnumerator::ModulesVector enumerated_modules_; |
| 330 | 330 |
| 331 // The object responsible for enumerating the modules on the File thread. | 331 // The object responsible for enumerating the modules on the File thread. |
| 332 scoped_refptr<ModuleEnumerator> module_enumerator_; | 332 scoped_refptr<ModuleEnumerator> module_enumerator_; |
| 333 | 333 |
| 334 // When this singleton object is constructed we go and fire off this timer to | 334 // When this singleton object is constructed we go and fire off this timer to |
| 335 // start scanning for modules after a certain amount of time has passed. | 335 // start scanning for modules after a certain amount of time has passed. |
| 336 base::OneShotTimer<EnumerateModulesModel> check_modules_timer_; | 336 base::OneShotTimer check_modules_timer_; |
| 337 | 337 |
| 338 // While normally |false|, this mode can be set to indicate that the scanning | 338 // While normally |false|, this mode can be set to indicate that the scanning |
| 339 // process should not rely on certain services normally available to Chrome, | 339 // process should not rely on certain services normally available to Chrome, |
| 340 // such as the resource bundle and the notification system, not to mention | 340 // such as the resource bundle and the notification system, not to mention |
| 341 // having multiple threads. This mode is useful during diagnostics, which | 341 // having multiple threads. This mode is useful during diagnostics, which |
| 342 // runs without firing up all necessary Chrome services first. | 342 // runs without firing up all necessary Chrome services first. |
| 343 bool limited_mode_; | 343 bool limited_mode_; |
| 344 | 344 |
| 345 // True if we are currently scanning for modules. | 345 // True if we are currently scanning for modules. |
| 346 bool scanning_; | 346 bool scanning_; |
| 347 | 347 |
| 348 // Whether the conflict notification has been acknowledged by the user. | 348 // Whether the conflict notification has been acknowledged by the user. |
| 349 bool conflict_notification_acknowledged_; | 349 bool conflict_notification_acknowledged_; |
| 350 | 350 |
| 351 // The number of confirmed bad modules (not including suspected bad ones) | 351 // The number of confirmed bad modules (not including suspected bad ones) |
| 352 // found during last scan. | 352 // found during last scan. |
| 353 int confirmed_bad_modules_detected_; | 353 int confirmed_bad_modules_detected_; |
| 354 | 354 |
| 355 // The number of bad modules the user needs to be aggressively notified about. | 355 // The number of bad modules the user needs to be aggressively notified about. |
| 356 int modules_to_notify_about_; | 356 int modules_to_notify_about_; |
| 357 | 357 |
| 358 // The number of suspected bad modules (not including confirmed bad ones) | 358 // The number of suspected bad modules (not including confirmed bad ones) |
| 359 // found during last scan. | 359 // found during last scan. |
| 360 int suspected_bad_modules_detected_; | 360 int suspected_bad_modules_detected_; |
| 361 | 361 |
| 362 DISALLOW_COPY_AND_ASSIGN(EnumerateModulesModel); | 362 DISALLOW_COPY_AND_ASSIGN(EnumerateModulesModel); |
| 363 }; | 363 }; |
| 364 | 364 |
| 365 #endif // CHROME_BROWSER_ENUMERATE_MODULES_MODEL_WIN_H_ | 365 #endif // CHROME_BROWSER_ENUMERATE_MODULES_MODEL_WIN_H_ |
| OLD | NEW |