| 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 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_ | 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_ |
| 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_ | 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/chrome_browser_main_posix.h" | 8 #include "chrome/browser/chrome_browser_main_posix.h" |
| 9 | 9 |
| 10 namespace chrome { |
| 11 class RemovableDeviceNotificationsMac; |
| 12 } |
| 13 |
| 10 class ChromeBrowserMainPartsMac : public ChromeBrowserMainPartsPosix { | 14 class ChromeBrowserMainPartsMac : public ChromeBrowserMainPartsPosix { |
| 11 public: | 15 public: |
| 12 explicit ChromeBrowserMainPartsMac( | 16 explicit ChromeBrowserMainPartsMac( |
| 13 const content::MainFunctionParams& parameters); | 17 const content::MainFunctionParams& parameters); |
| 18 virtual ~ChromeBrowserMainPartsMac(); |
| 14 | 19 |
| 15 // BrowserParts overrides. | 20 // BrowserParts overrides. |
| 16 virtual void PreEarlyInitialization() OVERRIDE; | 21 virtual void PreEarlyInitialization() OVERRIDE; |
| 17 virtual void PreMainMessageLoopStart() OVERRIDE; | 22 virtual void PreMainMessageLoopStart() OVERRIDE; |
| 23 virtual void PreProfileInit() OVERRIDE; |
| 18 | 24 |
| 19 // Perform platform-specific work that needs to be done after the main event | 25 // Perform platform-specific work that needs to be done after the main event |
| 20 // loop has ended. The embedder must be sure to call this. | 26 // loop has ended. The embedder must be sure to call this. |
| 21 static void DidEndMainMessageLoop(); | 27 static void DidEndMainMessageLoop(); |
| 22 | 28 |
| 23 private: | 29 private: |
| 30 scoped_ptr<chrome::RemovableDeviceNotificationsMac> |
| 31 removable_device_notifications_mac_; |
| 32 |
| 24 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsMac); | 33 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsMac); |
| 25 }; | 34 }; |
| 26 | 35 |
| 27 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_ | 36 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_ |
| OLD | NEW |