| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 APPS_APP_SHIM_APP_SHIM_HANDLER_MAC_H_ | 5 #ifndef CHROME_BROWSER_APPS_APP_SHIM_APP_SHIM_HANDLER_MAC_H_ |
| 6 #define APPS_APP_SHIM_APP_SHIM_HANDLER_MAC_H_ | 6 #define CHROME_BROWSER_APPS_APP_SHIM_APP_SHIM_HANDLER_MAC_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "apps/app_shim/app_shim_launch.h" | |
| 12 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "chrome/browser/apps/app_shim/app_shim_launch.h" |
| 13 | 13 |
| 14 namespace apps { | 14 namespace apps { |
| 15 | 15 |
| 16 // Registrar, and interface for services that can handle interactions with OSX | 16 // Registrar, and interface for services that can handle interactions with OSX |
| 17 // shim processes. | 17 // shim processes. |
| 18 class AppShimHandler { | 18 class AppShimHandler { |
| 19 public: | 19 public: |
| 20 class Host { | 20 class Host { |
| 21 public: | 21 public: |
| 22 // Invoked when the app is successfully launched. | 22 // Invoked when the app is successfully launched. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // Invoked by the shim host when the shim process receives a quit event. | 86 // Invoked by the shim host when the shim process receives a quit event. |
| 87 virtual void OnShimQuit(Host* host) = 0; | 87 virtual void OnShimQuit(Host* host) = 0; |
| 88 | 88 |
| 89 protected: | 89 protected: |
| 90 AppShimHandler() {} | 90 AppShimHandler() {} |
| 91 virtual ~AppShimHandler() {} | 91 virtual ~AppShimHandler() {} |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace apps | 94 } // namespace apps |
| 95 | 95 |
| 96 #endif // APPS_APP_SHIM_APP_SHIM_HANDLER_MAC_H_ | 96 #endif // CHROME_BROWSER_APPS_APP_SHIM_APP_SHIM_HANDLER_MAC_H_ |
| OLD | NEW |