[email protected] | 612d3bf | 2013-05-22 10:10:46 | [diff] [blame] | 1 | // 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 | |||||
dcheng | 4af4858 | 2016-04-19 00:29:35 | [diff] [blame] | 8 | #include <memory> |
9 | |||||
[email protected] | 612d3bf | 2013-05-22 10:10:46 | [diff] [blame] | 10 | #include "base/compiler_specific.h" |
avi | e4d7b6f | 2015-12-26 00:59:18 | [diff] [blame] | 11 | #include "base/macros.h" |
tapted | 63829f7 | 2014-09-24 23:50:50 | [diff] [blame] | 12 | #include "chrome/browser/apps/app_shim/app_shim_host_manager_mac.h" |
[email protected] | 612d3bf | 2013-05-22 10:10:46 | [diff] [blame] | 13 | #include "chrome/browser/browser_process_platform_part_base.h" |
14 | |||||
15 | class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase { | ||||
16 | public: | ||||
17 | BrowserProcessPlatformPart(); | ||||
Daniel Cheng | a542fca | 2014-10-21 09:51:29 | [diff] [blame] | 18 | ~BrowserProcessPlatformPart() override; |
[email protected] | 612d3bf | 2013-05-22 10:10:46 | [diff] [blame] | 19 | |
20 | // Overridden from BrowserProcessPlatformPartBase: | ||||
Daniel Cheng | a542fca | 2014-10-21 09:51:29 | [diff] [blame] | 21 | void StartTearDown() override; |
Avi Drissman | f19bb47 | 2018-11-29 19:51:28 | [diff] [blame^] | 22 | void AttemptExit(bool try_to_quit_application) override; |
Daniel Cheng | a542fca | 2014-10-21 09:51:29 | [diff] [blame] | 23 | void PreMainMessageLoopRun() override; |
[email protected] | 90a4b9d | 2013-07-31 12:14:40 | [diff] [blame] | 24 | |
25 | AppShimHostManager* app_shim_host_manager(); | ||||
[email protected] | 612d3bf | 2013-05-22 10:10:46 | [diff] [blame] | 26 | |
27 | private: | ||||
[email protected] | 90a4b9d | 2013-07-31 12:14:40 | [diff] [blame] | 28 | // Hosts the IPC channel factory that App Shims connect to on Mac. |
[email protected] | ab1b5da | 2013-09-18 10:51:27 | [diff] [blame] | 29 | scoped_refptr<AppShimHostManager> app_shim_host_manager_; |
[email protected] | 90a4b9d | 2013-07-31 12:14:40 | [diff] [blame] | 30 | |
[email protected] | 612d3bf | 2013-05-22 10:10:46 | [diff] [blame] | 31 | DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); |
32 | }; | ||||
33 | |||||
34 | #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_ |