| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Contains functions used by BrowserMain() that are win32-specific. | 5 // Contains functions used by BrowserMain() that are win32-specific. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ | 7 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ |
| 8 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ | 8 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ |
| 9 | 9 |
| 10 #include "base/files/file_path_watcher.h" | 10 #include "base/files/file_path_watcher.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "chrome/browser/chrome_browser_main.h" | 12 #include "chrome/browser/chrome_browser_main.h" |
| 13 #include "third_party/kasko/kasko_features.h" | 13 #include "third_party/kasko/kasko_features.h" |
| 14 | 14 |
| 15 class DidRunUpdater; | 15 class DidRunUpdater; |
| 16 class ModuleWatcher; |
| 16 | 17 |
| 17 namespace base { | 18 namespace base { |
| 18 class CommandLine; | 19 class CommandLine; |
| 19 } | 20 } |
| 20 | 21 |
| 21 // Handle uninstallation when given the appropriate the command-line switch. | 22 // Handle uninstallation when given the appropriate the command-line switch. |
| 22 // If |chrome_still_running| is true a modal dialog will be shown asking the | 23 // If |chrome_still_running| is true a modal dialog will be shown asking the |
| 23 // user to close the other chrome instance. | 24 // user to close the other chrome instance. |
| 24 int DoUninstallTasks(bool chrome_still_running); | 25 int DoUninstallTasks(bool chrome_still_running); |
| 25 | 26 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 72 |
| 72 private: | 73 private: |
| 73 #if defined(GOOGLE_CHROME_BUILD) | 74 #if defined(GOOGLE_CHROME_BUILD) |
| 74 std::unique_ptr<DidRunUpdater> did_run_updater_; | 75 std::unique_ptr<DidRunUpdater> did_run_updater_; |
| 75 #endif | 76 #endif |
| 76 #if BUILDFLAG(ENABLE_KASKO) | 77 #if BUILDFLAG(ENABLE_KASKO) |
| 77 // Cleans up Kasko crash reports that exceeded the maximum upload attempts. | 78 // Cleans up Kasko crash reports that exceeded the maximum upload attempts. |
| 78 base::FilePathWatcher failed_kasko_crash_report_watcher_; | 79 base::FilePathWatcher failed_kasko_crash_report_watcher_; |
| 79 #endif | 80 #endif |
| 80 | 81 |
| 82 std::unique_ptr<ModuleWatcher> module_watcher_; |
| 83 |
| 81 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); | 84 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); |
| 82 }; | 85 }; |
| 83 | 86 |
| 84 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ | 87 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ |
| OLD | NEW |