| 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/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "chrome/browser/chrome_browser_main.h" | 11 #include "chrome/browser/chrome_browser_main.h" |
| 12 | 12 |
| 13 class CommandLine; | 13 class CommandLine; |
| 14 | 14 |
| 15 namespace chrome { | 15 namespace chrome { |
| 16 class RemovableDeviceNotificationsWindowWin; | 16 class RemovableDeviceNotificationsWindowWin; |
| 17 class ViewerProcessHost; |
| 17 } // namespace chrome | 18 } // namespace chrome |
| 18 | 19 |
| 19 | 20 |
| 20 // Handle uninstallation when given the appropriate the command-line switch. | 21 // Handle uninstallation when given the appropriate the command-line switch. |
| 21 // If |chrome_still_running| is true a modal dialog will be shown asking the | 22 // If |chrome_still_running| is true a modal dialog will be shown asking the |
| 22 // user to close the other chrome instance. | 23 // user to close the other chrome instance. |
| 23 int DoUninstallTasks(bool chrome_still_running); | 24 int DoUninstallTasks(bool chrome_still_running); |
| 24 | 25 |
| 25 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts { | 26 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts { |
| 26 public: | 27 public: |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // user level Chrome. | 63 // user level Chrome. |
| 63 static bool CheckMachineLevelInstall(); | 64 static bool CheckMachineLevelInstall(); |
| 64 | 65 |
| 65 // Sets the TranslationDelegate which provides localized strings to | 66 // Sets the TranslationDelegate which provides localized strings to |
| 66 // installer_util. | 67 // installer_util. |
| 67 static void SetupInstallerUtilStrings(); | 68 static void SetupInstallerUtilStrings(); |
| 68 | 69 |
| 69 private: | 70 private: |
| 70 scoped_refptr<chrome::RemovableDeviceNotificationsWindowWin> | 71 scoped_refptr<chrome::RemovableDeviceNotificationsWindowWin> |
| 71 removable_device_notifications_window_; | 72 removable_device_notifications_window_; |
| 73 scoped_ptr<chrome::ViewerProcessHost> viewer_process_host_; |
| 72 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); | 74 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); |
| 73 }; | 75 }; |
| 74 | 76 |
| 75 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ | 77 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ |
| OLD | NEW |