OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 REMOTING_HOST_CONSTANTS_MAC_H_ | 5 #ifndef REMOTING_HOST_CONSTANTS_MAC_H_ |
6 #define REMOTING_HOST_CONSTANTS_MAC_H_ | 6 #define REMOTING_HOST_CONSTANTS_MAC_H_ |
7 | 7 |
8 namespace remoting { | 8 namespace remoting { |
9 | 9 |
10 // The name of the Remoting Host service that is registered with launchd. | 10 // The name of the Remoting Host service that is registered with launchd. |
11 #define kServiceName "org.chromium.chromoting" | 11 extern const char kServiceName[]; |
12 | 12 |
13 // Use separate named notifications for success and failure because sandboxed | 13 // Use separate named notifications for success and failure because sandboxed |
14 // components can't include a dictionary when sending distributed notifications. | 14 // components can't include a dictionary when sending distributed notifications. |
15 // The preferences panel is not yet sandboxed, but err on the side of caution. | 15 // The preferences panel is not yet sandboxed, but err on the side of caution. |
16 #define kUpdateSucceededNotificationName kServiceName ".update_succeeded" | 16 // These are #defines because they are used with CFSTR macro, which requires |
17 #define kUpdateFailedNotificationName kServiceName ".update_failed" | 17 // string literals. |
| 18 #define UPDATE_SUCCEEDED_NOTIFICATION_NAME \ |
| 19 "org.chromium.chromoting.update_succeeded" |
| 20 #define UPDATE_FAILED_NOTIFICATION_NAME "org.chromium.chromoting.update_failed" |
18 | 21 |
19 #define kHostConfigDir "/Library/PrivilegedHelperTools/" | |
20 | 22 |
21 // This helper tool is executed as root to enable/disable/configure the host | 23 // Chromoting's preference pane file. |
| 24 extern const char kPrefPaneFileName[]; |
| 25 extern const char kPrefPaneFilePath[]; |
| 26 |
| 27 // Use a single configuration file, instead of separate "auth" and "host" files. |
| 28 // This is because the SetConfigAndStart() API only provides a single |
| 29 // dictionary, and splitting this into two dictionaries would require |
| 30 // knowledge of which keys belong in which files. |
| 31 extern const char kHostConfigFileName[]; |
| 32 extern const char kHostConfigFilePath[]; |
| 33 |
| 34 // This helper script is executed as root to enable/disable/configure the host |
22 // service. | 35 // service. |
23 // It is also used (as non-root) to provide version information for the | 36 // It is also used (as non-root) to provide version information for the |
24 // installed host components. | 37 // installed host components. |
25 extern const char kHostHelperTool[]; | 38 extern const char kHostHelperScriptPath[]; |
| 39 |
| 40 // Path to the service binary (.app). |
| 41 extern const char kHostBinaryPath[]; |
| 42 |
| 43 // If this file exists, it means that the host is enabled for sharing. |
| 44 extern const char kHostEnabledPath[]; |
| 45 |
| 46 // The .plist file for the Chromoting service. |
| 47 extern const char kServicePlistPath[]; |
| 48 |
| 49 // The branded and unbranded names for the uninstaller. |
| 50 // This is the only file that changes names based on branding. We define both |
| 51 // because we want local dev builds to be able to clean up both files. |
| 52 extern const char kBrandedUninstallerPath[]; |
| 53 extern const char kUnbrandedUninstallerPath[]; |
26 | 54 |
27 } // namespace remoting | 55 } // namespace remoting |
28 | 56 |
29 #endif // REMOTING_HOST_CONSTANTS_MAC_H_ | 57 #endif // REMOTING_HOST_CONSTANTS_MAC_H_ |
OLD | NEW |