Chromium Code Reviews| 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 "base/macros.h" |
| 9 #include "chrome/browser/chrome_browser_main_posix.h" | 9 #include "chrome/browser/chrome_browser_main_posix.h" |
| 10 #include "chrome/browser/resource_delegate_mac.h" | |
|
tapted
2016/01/14 23:43:50
nit: forward declare [or possibly we don't even n
karandeepb
2016/01/18 00:31:17
Have changed to a value type, but we can't forward
tapted
2016/01/18 04:15:41
yup - exactly :)
| |
| 10 | 11 |
| 11 class ChromeBrowserMainPartsMac : public ChromeBrowserMainPartsPosix { | 12 class ChromeBrowserMainPartsMac : public ChromeBrowserMainPartsPosix { |
| 12 public: | 13 public: |
| 13 explicit ChromeBrowserMainPartsMac( | 14 explicit ChromeBrowserMainPartsMac( |
| 14 const content::MainFunctionParams& parameters); | 15 const content::MainFunctionParams& parameters); |
| 15 ~ChromeBrowserMainPartsMac() override; | 16 ~ChromeBrowserMainPartsMac() override; |
| 16 | 17 |
| 17 // BrowserParts overrides. | 18 // BrowserParts overrides. |
| 18 void PreEarlyInitialization() override; | 19 void PreEarlyInitialization() override; |
| 19 void PreMainMessageLoopStart() override; | 20 void PreMainMessageLoopStart() override; |
| 20 void PostMainMessageLoopStart() override; | 21 void PostMainMessageLoopStart() override; |
| 21 void PreProfileInit() override; | 22 void PreProfileInit() override; |
| 22 void PostProfileInit() override; | 23 void PostProfileInit() override; |
| 23 | 24 |
| 24 // 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 |
| 25 // loop has ended. The embedder must be sure to call this. | 26 // loop has ended. The embedder must be sure to call this. |
| 26 static void DidEndMainMessageLoop(); | 27 static void DidEndMainMessageLoop(); |
| 27 | 28 |
| 28 private: | 29 private: |
| 30 scoped_ptr<ui::MacResourceDelegate> resource_delegate_; | |
| 31 | |
| 29 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsMac); | 32 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsMac); |
| 30 }; | 33 }; |
| 31 | 34 |
| 32 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_ | 35 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_ |
| OLD | NEW |