| 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 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // Handle uninstallation when given the appropriate the command-line switch. | 21 // 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 | 22 // If |chrome_still_running| is true a modal dialog will be shown asking the |
| 23 // user to close the other chrome instance. | 23 // user to close the other chrome instance. |
| 24 int DoUninstallTasks(bool chrome_still_running); | 24 int DoUninstallTasks(bool chrome_still_running); |
| 25 | 25 |
| 26 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts { | 26 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts { |
| 27 public: | 27 public: |
| 28 explicit ChromeBrowserMainPartsWin( | 28 explicit ChromeBrowserMainPartsWin( |
| 29 const content::MainFunctionParams& parameters); | 29 const content::MainFunctionParams& parameters); |
| 30 | 30 |
| 31 virtual ChromeBrowserMainPartsWin::~ChromeBrowserMainPartsWin(); | 31 virtual ~ChromeBrowserMainPartsWin(); |
| 32 | 32 |
| 33 // BrowserParts overrides. | 33 // BrowserParts overrides. |
| 34 virtual void ToolkitInitialized() OVERRIDE; | 34 virtual void ToolkitInitialized() OVERRIDE; |
| 35 virtual void PreMainMessageLoopStart() OVERRIDE; | 35 virtual void PreMainMessageLoopStart() OVERRIDE; |
| 36 | 36 |
| 37 // ChromeBrowserMainParts overrides. | 37 // ChromeBrowserMainParts overrides. |
| 38 virtual void ShowMissingLocaleMessageBox() OVERRIDE; | 38 virtual void ShowMissingLocaleMessageBox() OVERRIDE; |
| 39 | 39 |
| 40 // Prepares the localized strings that are going to be displayed to | 40 // Prepares the localized strings that are going to be displayed to |
| 41 // the user if the browser process dies. These strings are stored in the | 41 // the user if the browser process dies. These strings are stored in the |
| (...skipping 19 matching lines...) Expand all Loading... |
| 61 // user level Chrome. | 61 // user level Chrome. |
| 62 static bool CheckMachineLevelInstall(); | 62 static bool CheckMachineLevelInstall(); |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 scoped_ptr<chrome::MediaDeviceNotificationsWindowWin> | 65 scoped_ptr<chrome::MediaDeviceNotificationsWindowWin> |
| 66 media_device_notifications_window_; | 66 media_device_notifications_window_; |
| 67 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); | 67 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ | 70 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ |
| OLD | NEW |