| Index: remoting/host/constants_mac.h
|
| ===================================================================
|
| --- remoting/host/constants_mac.h (revision 147494)
|
| +++ remoting/host/constants_mac.h (working copy)
|
| @@ -8,22 +8,50 @@
|
| namespace remoting {
|
|
|
| // The name of the Remoting Host service that is registered with launchd.
|
| -#define kServiceName "org.chromium.chromoting"
|
| +extern const char kServiceName[];
|
|
|
| // Use separate named notifications for success and failure because sandboxed
|
| // components can't include a dictionary when sending distributed notifications.
|
| // The preferences panel is not yet sandboxed, but err on the side of caution.
|
| -#define kUpdateSucceededNotificationName kServiceName ".update_succeeded"
|
| -#define kUpdateFailedNotificationName kServiceName ".update_failed"
|
| +// These are #defines because they are used with CFSTR macro, which requires
|
| +// string literals.
|
| +#define UPDATE_SUCCEEDED_NOTIFICATION_NAME \
|
| + "org.chromium.chromoting.update_succeeded"
|
| +#define UPDATE_FAILED_NOTIFICATION_NAME "org.chromium.chromoting.update_failed"
|
|
|
| -#define kHostConfigDir "/Library/PrivilegedHelperTools/"
|
|
|
| -// This helper tool is executed as root to enable/disable/configure the host
|
| +// Chromoting's preference pane file.
|
| +extern const char kPrefPaneFileName[];
|
| +extern const char kPrefPaneFilePath[];
|
| +
|
| +// Use a single configuration file, instead of separate "auth" and "host" files.
|
| +// This is because the SetConfigAndStart() API only provides a single
|
| +// dictionary, and splitting this into two dictionaries would require
|
| +// knowledge of which keys belong in which files.
|
| +extern const char kHostConfigFileName[];
|
| +extern const char kHostConfigFilePath[];
|
| +
|
| +// This helper script is executed as root to enable/disable/configure the host
|
| // service.
|
| // It is also used (as non-root) to provide version information for the
|
| // installed host components.
|
| -extern const char kHostHelperTool[];
|
| +extern const char kHostHelperScriptPath[];
|
|
|
| +// Path to the service binary (.app).
|
| +extern const char kHostBinaryPath[];
|
| +
|
| +// If this file exists, it means that the host is enabled for sharing.
|
| +extern const char kHostEnabledPath[];
|
| +
|
| +// The .plist file for the Chromoting service.
|
| +extern const char kServicePlistPath[];
|
| +
|
| +// The branded and unbranded names for the uninstaller.
|
| +// This is the only file that changes names based on branding. We define both
|
| +// because we want local dev builds to be able to clean up both files.
|
| +extern const char kBrandedUninstallerPath[];
|
| +extern const char kUnbrandedUninstallerPath[];
|
| +
|
| } // namespace remoting
|
|
|
| #endif // REMOTING_HOST_CONSTANTS_MAC_H_
|
|
|