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.
5 #ifndef CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_
6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_
10 #include "base/compiler_specific.h"
11 #include "base/macros.h"
12 #include "chrome/browser/apps/app_shim/app_shim_listener.h"
13 #include "chrome/browser/browser_process_platform_part_base.h"
19 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase {
21 BrowserProcessPlatformPart();
22 ~BrowserProcessPlatformPart() override;
24 // Overridden from BrowserProcessPlatformPartBase:
25 void StartTearDown() override;
26 void AttemptExit(bool try_to_quit_application) override;
27 void PreMainMessageLoopRun() override;
29 AppShimListener* app_shim_listener();
30 apps::AppShimManager* app_shim_manager();
33 std::unique_ptr<apps::AppShimManager> app_shim_manager_;
35 // Hosts the IPC channel factory that App Shims connect to on Mac.
36 scoped_refptr<AppShimListener> app_shim_listener_;
38 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart);
41 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_