| 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 "chrome/browser/chrome_browser_main.h" | 10 #include "chrome/browser/chrome_browser_main.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class CommandLine; | 13 class CommandLine; |
| 14 } | 14 } |
| 15 | 15 |
| 16 // Handle uninstallation when given the appropriate the command-line switch. | 16 // Handle uninstallation when given the appropriate the command-line switch. |
| 17 // If |chrome_still_running| is true a modal dialog will be shown asking the | 17 // If |chrome_still_running| is true a modal dialog will be shown asking the |
| 18 // user to close the other chrome instance. | 18 // user to close the other chrome instance. |
| 19 int DoUninstallTasks(bool chrome_still_running); | 19 int DoUninstallTasks(bool chrome_still_running); |
| 20 | 20 |
| 21 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts { | 21 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts { |
| 22 public: | 22 public: |
| 23 explicit ChromeBrowserMainPartsWin( | 23 explicit ChromeBrowserMainPartsWin( |
| 24 const content::MainFunctionParams& parameters); | 24 const content::MainFunctionParams& parameters); |
| 25 | 25 |
| 26 virtual ~ChromeBrowserMainPartsWin(); | 26 virtual ~ChromeBrowserMainPartsWin(); |
| 27 | 27 |
| 28 // BrowserParts overrides. | 28 // BrowserParts overrides. |
| 29 virtual void ToolkitInitialized() OVERRIDE; | 29 virtual void ToolkitInitialized() override; |
| 30 virtual void PreMainMessageLoopStart() OVERRIDE; | 30 virtual void PreMainMessageLoopStart() override; |
| 31 virtual int PreCreateThreads() OVERRIDE; | 31 virtual int PreCreateThreads() override; |
| 32 | 32 |
| 33 // ChromeBrowserMainParts overrides. | 33 // ChromeBrowserMainParts overrides. |
| 34 virtual void ShowMissingLocaleMessageBox() OVERRIDE; | 34 virtual void ShowMissingLocaleMessageBox() override; |
| 35 virtual void PostBrowserStart() OVERRIDE; | 35 virtual void PostBrowserStart() override; |
| 36 | 36 |
| 37 // Prepares the localized strings that are going to be displayed to | 37 // Prepares the localized strings that are going to be displayed to |
| 38 // the user if the browser process dies. These strings are stored in the | 38 // the user if the browser process dies. These strings are stored in the |
| 39 // environment block so they are accessible in the early stages of the | 39 // environment block so they are accessible in the early stages of the |
| 40 // chrome executable's lifetime. | 40 // chrome executable's lifetime. |
| 41 static void PrepareRestartOnCrashEnviroment( | 41 static void PrepareRestartOnCrashEnviroment( |
| 42 const base::CommandLine& parsed_command_line); | 42 const base::CommandLine& parsed_command_line); |
| 43 | 43 |
| 44 // Registers Chrome with the Windows Restart Manager, which will restore the | 44 // Registers Chrome with the Windows Restart Manager, which will restore the |
| 45 // Chrome session when the computer is restarted after a system update. | 45 // Chrome session when the computer is restarted after a system update. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 60 | 60 |
| 61 // Sets the TranslationDelegate which provides localized strings to | 61 // Sets the TranslationDelegate which provides localized strings to |
| 62 // installer_util. | 62 // installer_util. |
| 63 static void SetupInstallerUtilStrings(); | 63 static void SetupInstallerUtilStrings(); |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); | 66 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ | 69 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ |
| OLD | NEW |