blob: 6d326407abb394b6c51dc72af5c28452b57692d7 [file] [log] [blame]
[email protected]612d3bf2013-05-22 10:10:461// Copyright (c) 2013 The Chromium Authors. All rights reserved.
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_BROWSER_PROCESS_PLATFORM_PART_MAC_H_
6#define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_
7
dcheng4af48582016-04-19 00:29:358#include <memory>
9
[email protected]612d3bf2013-05-22 10:10:4610#include "base/compiler_specific.h"
avie4d7b6f2015-12-26 00:59:1811#include "base/macros.h"
tapted63829f72014-09-24 23:50:5012#include "chrome/browser/apps/app_shim/app_shim_host_manager_mac.h"
[email protected]612d3bf2013-05-22 10:10:4613#include "chrome/browser/browser_process_platform_part_base.h"
14
15class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase {
16 public:
17 BrowserProcessPlatformPart();
Daniel Chenga542fca2014-10-21 09:51:2918 ~BrowserProcessPlatformPart() override;
[email protected]612d3bf2013-05-22 10:10:4619
20 // Overridden from BrowserProcessPlatformPartBase:
Daniel Chenga542fca2014-10-21 09:51:2921 void StartTearDown() override;
Avi Drissmanf19bb472018-11-29 19:51:2822 void AttemptExit(bool try_to_quit_application) override;
Daniel Chenga542fca2014-10-21 09:51:2923 void PreMainMessageLoopRun() override;
[email protected]90a4b9d2013-07-31 12:14:4024
25 AppShimHostManager* app_shim_host_manager();
[email protected]612d3bf2013-05-22 10:10:4626
27 private:
[email protected]90a4b9d2013-07-31 12:14:4028 // Hosts the IPC channel factory that App Shims connect to on Mac.
[email protected]ab1b5da2013-09-18 10:51:2729 scoped_refptr<AppShimHostManager> app_shim_host_manager_;
[email protected]90a4b9d2013-07-31 12:14:4030
[email protected]612d3bf2013-05-22 10:10:4631 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart);
32};
33
34#endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_