| 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" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 virtual ~ChromeBrowserMainPartsWin(); | 24 virtual ~ChromeBrowserMainPartsWin(); |
| 25 | 25 |
| 26 // BrowserParts overrides. | 26 // BrowserParts overrides. |
| 27 virtual void ToolkitInitialized() OVERRIDE; | 27 virtual void ToolkitInitialized() OVERRIDE; |
| 28 virtual void PreMainMessageLoopStart() OVERRIDE; | 28 virtual void PreMainMessageLoopStart() OVERRIDE; |
| 29 virtual int PreCreateThreads() OVERRIDE; | 29 virtual int PreCreateThreads() OVERRIDE; |
| 30 | 30 |
| 31 // ChromeBrowserMainParts overrides. | 31 // ChromeBrowserMainParts overrides. |
| 32 virtual void ShowMissingLocaleMessageBox() OVERRIDE; | 32 virtual void ShowMissingLocaleMessageBox() OVERRIDE; |
| 33 virtual void PostBrowserStart() OVERRIDE; |
| 33 | 34 |
| 34 // Prepares the localized strings that are going to be displayed to | 35 // Prepares the localized strings that are going to be displayed to |
| 35 // the user if the browser process dies. These strings are stored in the | 36 // the user if the browser process dies. These strings are stored in the |
| 36 // environment block so they are accessible in the early stages of the | 37 // environment block so they are accessible in the early stages of the |
| 37 // chrome executable's lifetime. | 38 // chrome executable's lifetime. |
| 38 static void PrepareRestartOnCrashEnviroment( | 39 static void PrepareRestartOnCrashEnviroment( |
| 39 const CommandLine& parsed_command_line); | 40 const CommandLine& parsed_command_line); |
| 40 | 41 |
| 41 // Registers Chrome with the Windows Restart Manager, which will restore the | 42 // Registers Chrome with the Windows Restart Manager, which will restore the |
| 42 // Chrome session when the computer is restarted after a system update. | 43 // Chrome session when the computer is restarted after a system update. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 57 | 58 |
| 58 // Sets the TranslationDelegate which provides localized strings to | 59 // Sets the TranslationDelegate which provides localized strings to |
| 59 // installer_util. | 60 // installer_util. |
| 60 static void SetupInstallerUtilStrings(); | 61 static void SetupInstallerUtilStrings(); |
| 61 | 62 |
| 62 private: | 63 private: |
| 63 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); | 64 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ | 67 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ |
| OLD | NEW |