blob: 52f6cf14df88ed4d02790608f90ba9fc78c446ca [file] [log] [blame]
[email protected]81ce2c42012-03-24 01:43:261// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]e6b5bc22011-09-08 22:01:562// 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]e6b5bc22011-09-08 22:01:567
[email protected]bb759f22013-04-03 03:45:498#include "base/memory/scoped_ptr.h"
[email protected]e6b5bc22011-09-08 22:01:569#include "chrome/browser/chrome_browser_main_posix.h"
[email protected]e6b5bc22011-09-08 22:01:5610
[email protected]39fc5d322012-09-15 10:54:5511namespace chrome {
[email protected]5cfc09422013-03-04 23:48:4212class StorageMonitorMac;
[email protected]39fc5d322012-09-15 10:54:5513}
14
[email protected]e6b5bc22011-09-08 22:01:5615class ChromeBrowserMainPartsMac : public ChromeBrowserMainPartsPosix {
16 public:
[email protected]4573fbd2011-10-31 20:25:1817 explicit ChromeBrowserMainPartsMac(
18 const content::MainFunctionParams& parameters);
[email protected]39fc5d322012-09-15 10:54:5519 virtual ~ChromeBrowserMainPartsMac();
[email protected]e6b5bc22011-09-08 22:01:5620
[email protected]b48c9182011-10-26 18:03:3021 // BrowserParts overrides.
[email protected]e6b5bc22011-09-08 22:01:5622 virtual void PreEarlyInitialization() OVERRIDE;
23 virtual void PreMainMessageLoopStart() OVERRIDE;
[email protected]39fc5d322012-09-15 10:54:5524 virtual void PreProfileInit() OVERRIDE;
[email protected]6d7ba1a2013-03-19 20:23:2725 virtual void PostProfileInit() OVERRIDE;
[email protected]03d8d3e92011-09-20 06:07:1126
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]81ce2c42012-03-24 01:43:2630
31 private:
[email protected]bb759f22013-04-03 03:45:4932 scoped_ptr<chrome::StorageMonitorMac> storage_monitor_;
[email protected]39fc5d322012-09-15 10:54:5533
[email protected]81ce2c42012-03-24 01:43:2634 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsMac);
[email protected]e6b5bc22011-09-08 22:01:5635};
36
37#endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_