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