[email protected] | 81ce2c4 | 2012-03-24 01:43:26 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | e6b5bc2 | 2011-09-08 22:01:56 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_ | ||||
6 | #define CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_ | ||||
[email protected] | e6b5bc2 | 2011-09-08 22:01:56 | [diff] [blame] | 7 | |
[email protected] | bb759f2 | 2013-04-03 03:45:49 | [diff] [blame] | 8 | #include "base/memory/scoped_ptr.h" |
[email protected] | e6b5bc2 | 2011-09-08 22:01:56 | [diff] [blame] | 9 | #include "chrome/browser/chrome_browser_main_posix.h" |
[email protected] | e6b5bc2 | 2011-09-08 22:01:56 | [diff] [blame] | 10 | |
[email protected] | 39fc5d32 | 2012-09-15 10:54:55 | [diff] [blame] | 11 | namespace chrome { |
[email protected] | 5cfc0942 | 2013-03-04 23:48:42 | [diff] [blame] | 12 | class StorageMonitorMac; |
[email protected] | 39fc5d32 | 2012-09-15 10:54:55 | [diff] [blame] | 13 | } |
14 | |||||
[email protected] | e6b5bc2 | 2011-09-08 22:01:56 | [diff] [blame] | 15 | class ChromeBrowserMainPartsMac : public ChromeBrowserMainPartsPosix { |
16 | public: | ||||
[email protected] | 4573fbd | 2011-10-31 20:25:18 | [diff] [blame] | 17 | explicit ChromeBrowserMainPartsMac( |
18 | const content::MainFunctionParams& parameters); | ||||
[email protected] | 39fc5d32 | 2012-09-15 10:54:55 | [diff] [blame] | 19 | virtual ~ChromeBrowserMainPartsMac(); |
[email protected] | e6b5bc2 | 2011-09-08 22:01:56 | [diff] [blame] | 20 | |
[email protected] | b48c918 | 2011-10-26 18:03:30 | [diff] [blame] | 21 | // BrowserParts overrides. |
[email protected] | e6b5bc2 | 2011-09-08 22:01:56 | [diff] [blame] | 22 | virtual void PreEarlyInitialization() OVERRIDE; |
23 | virtual void PreMainMessageLoopStart() OVERRIDE; | ||||
[email protected] | 39fc5d32 | 2012-09-15 10:54:55 | [diff] [blame] | 24 | virtual void PreProfileInit() OVERRIDE; |
[email protected] | 6d7ba1a | 2013-03-19 20:23:27 | [diff] [blame] | 25 | virtual void PostProfileInit() OVERRIDE; |
[email protected] | 03d8d3e9 | 2011-09-20 06:07:11 | [diff] [blame] | 26 | |
27 | // Perform platform-specific work that needs to be done after the main event | ||||
28 | // loop has ended. The embedder must be sure to call this. | ||||
29 | static void DidEndMainMessageLoop(); | ||||
[email protected] | 81ce2c4 | 2012-03-24 01:43:26 | [diff] [blame] | 30 | |
31 | private: | ||||
[email protected] | bb759f2 | 2013-04-03 03:45:49 | [diff] [blame] | 32 | scoped_ptr<chrome::StorageMonitorMac> storage_monitor_; |
[email protected] | 39fc5d32 | 2012-09-15 10:54:55 | [diff] [blame] | 33 | |
[email protected] | 81ce2c4 | 2012-03-24 01:43:26 | [diff] [blame] | 34 | DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsMac); |
[email protected] | e6b5bc2 | 2011-09-08 22:01:56 | [diff] [blame] | 35 | }; |
36 | |||||
37 | #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_ |