OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_ |
6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_ | 6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "chrome/browser/apps/app_shim/app_shim_host_manager_mac.h" | 12 #include "chrome/browser/apps/app_shim/app_shim_host_manager_mac.h" |
13 #include "chrome/browser/browser_process_platform_part_base.h" | 13 #include "chrome/browser/browser_process_platform_part_base.h" |
14 | 14 |
15 namespace apps { | |
16 class ExtensionAppShimHandler; | |
17 } | |
18 | |
19 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase { | 15 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase { |
20 public: | 16 public: |
21 BrowserProcessPlatformPart(); | 17 BrowserProcessPlatformPart(); |
22 ~BrowserProcessPlatformPart() override; | 18 ~BrowserProcessPlatformPart() override; |
23 | 19 |
24 // Overridden from BrowserProcessPlatformPartBase: | 20 // Overridden from BrowserProcessPlatformPartBase: |
25 void StartTearDown() override; | 21 void StartTearDown() override; |
26 void AttemptExit() override; | 22 void AttemptExit() override; |
27 void PreMainMessageLoopRun() override; | 23 void PreMainMessageLoopRun() override; |
28 | 24 |
29 AppShimHostManager* app_shim_host_manager(); | 25 AppShimHostManager* app_shim_host_manager(); |
30 | 26 |
31 private: | 27 private: |
32 // Hosts the IPC channel factory that App Shims connect to on Mac. | 28 // Hosts the IPC channel factory that App Shims connect to on Mac. |
33 scoped_refptr<AppShimHostManager> app_shim_host_manager_; | 29 scoped_refptr<AppShimHostManager> app_shim_host_manager_; |
34 | 30 |
35 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); | 31 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); |
36 }; | 32 }; |
37 | 33 |
38 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_ | 34 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_ |
OLD | NEW |