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 class MetroViewerProcessHost; | 14 class MetroViewerProcessHost; |
15 | 15 |
16 namespace chrome { | 16 namespace chrome { |
17 class RemovableDeviceNotificationsWindowWin; | 17 class RemovableDeviceNotificationsWindowWin; |
| 18 |
| 19 namespace mtp { |
| 20 class MediaTransferProtocolDeviceObserverWin; |
| 21 } // namespace mtp |
| 22 |
18 } // namespace chrome | 23 } // namespace chrome |
19 | 24 |
20 | 25 |
21 // Handle uninstallation when given the appropriate the command-line switch. | 26 // 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 | 27 // If |chrome_still_running| is true a modal dialog will be shown asking the |
23 // user to close the other chrome instance. | 28 // user to close the other chrome instance. |
24 int DoUninstallTasks(bool chrome_still_running); | 29 int DoUninstallTasks(bool chrome_still_running); |
25 | 30 |
26 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts { | 31 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts { |
27 public: | 32 public: |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // machine. If yes and the current Chrome process is user level, we do not | 66 // machine. If yes and the current Chrome process is user level, we do not |
62 // allow the user level Chrome to run. So we notify the user and uninstall | 67 // allow the user level Chrome to run. So we notify the user and uninstall |
63 // user level Chrome. | 68 // user level Chrome. |
64 static bool CheckMachineLevelInstall(); | 69 static bool CheckMachineLevelInstall(); |
65 | 70 |
66 // Sets the TranslationDelegate which provides localized strings to | 71 // Sets the TranslationDelegate which provides localized strings to |
67 // installer_util. | 72 // installer_util. |
68 static void SetupInstallerUtilStrings(); | 73 static void SetupInstallerUtilStrings(); |
69 | 74 |
70 private: | 75 private: |
| 76 scoped_refptr<chrome::mtp::MediaTransferProtocolDeviceObserverWin> |
| 77 media_transfer_protocol_device_observer_; |
71 scoped_refptr<chrome::RemovableDeviceNotificationsWindowWin> | 78 scoped_refptr<chrome::RemovableDeviceNotificationsWindowWin> |
72 removable_device_notifications_window_; | 79 removable_device_notifications_window_; |
73 #if defined(USE_AURA) | 80 #if defined(USE_AURA) |
74 scoped_ptr<MetroViewerProcessHost> metro_viewer_process_host_; | 81 scoped_ptr<MetroViewerProcessHost> metro_viewer_process_host_; |
75 #endif | 82 #endif |
76 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); | 83 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); |
77 }; | 84 }; |
78 | 85 |
79 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ | 86 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ |
OLD | NEW |