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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 // This will cause ScanNow to be invoked in background mode. | 295 // This will cause ScanNow to be invoked in background mode. |
296 void MaybePostScanningTask(); | 296 void MaybePostScanningTask(); |
297 | 297 |
298 // Asynchronously start the scan for the loaded module list. If | 298 // Asynchronously start the scan for the loaded module list. If |
299 // |background_mode| is true the scan will happen slowly over a process of | 299 // |background_mode| is true the scan will happen slowly over a process of |
300 // minutes, spread across dozens or even hundreds of delayed tasks. Otherwise | 300 // minutes, spread across dozens or even hundreds of delayed tasks. Otherwise |
301 // the processing will occur in a single task. | 301 // the processing will occur in a single task. |
302 void ScanNow(bool background_mode); | 302 void ScanNow(bool background_mode); |
303 | 303 |
304 // Gets the whole module list as a ListValue. | 304 // Gets the whole module list as a ListValue. |
305 base::ListValue* GetModuleList(); | 305 std::unique_ptr<base::ListValue> GetModuleList(); |
306 | 306 |
307 // Returns the site to which the user should be taken when the conflict bubble | 307 // Returns the site to which the user should be taken when the conflict bubble |
308 // or app menu item is clicked. For now this is simply chrome://conflicts, | 308 // or app menu item is clicked. For now this is simply chrome://conflicts, |
309 // which contains detailed information about conflicts. Returns an empty URL | 309 // which contains detailed information about conflicts. Returns an empty URL |
310 // if there are no conficts. May only be called on UI thread. | 310 // if there are no conficts. May only be called on UI thread. |
311 GURL GetConflictUrl(); | 311 GURL GetConflictUrl(); |
312 | 312 |
313 private: | 313 private: |
314 friend class ModuleEnumerator; | 314 friend class ModuleEnumerator; |
315 | 315 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 // The number of suspected bad modules (not including confirmed bad ones) | 347 // The number of suspected bad modules (not including confirmed bad ones) |
348 // found during last scan. Only modified on the UI thread. | 348 // found during last scan. Only modified on the UI thread. |
349 int suspected_bad_modules_detected_; | 349 int suspected_bad_modules_detected_; |
350 | 350 |
351 base::ObserverList<Observer> observers_; | 351 base::ObserverList<Observer> observers_; |
352 | 352 |
353 DISALLOW_COPY_AND_ASSIGN(EnumerateModulesModel); | 353 DISALLOW_COPY_AND_ASSIGN(EnumerateModulesModel); |
354 }; | 354 }; |
355 | 355 |
356 #endif // CHROME_BROWSER_WIN_ENUMERATE_MODULES_MODEL_H_ | 356 #endif // CHROME_BROWSER_WIN_ENUMERATE_MODULES_MODEL_H_ |
OLD | NEW |