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 #include "remoting/host/constants_mac.h" | 5 #include "remoting/host/constants_mac.h" |
6 | 6 |
7 namespace remoting { | 7 namespace remoting { |
8 | 8 |
9 #define SERVICE_NAME "org.chromium.chromoting" | 9 #define SERVICE_NAME "org.chromium.chromoting" |
10 #define PREFPANE_BUNDLE_NAME "ChromeRemoteDesktop.prefPane" | |
11 #define HOST_BUNDLE_NAME "ChromeRemoteDesktopHost.bundle" | |
12 | 10 |
13 #define APPLICATIONS_DIR "/Applications/" | 11 #define APPLICATIONS_DIR "/Applications/" |
14 #define HELPER_TOOLS_DIR "/Library/PrivilegedHelperTools/" | 12 #define HELPER_TOOLS_DIR "/Library/PrivilegedHelperTools/" |
15 #define LAUNCH_AGENTS_DIR "/Library/LaunchAgents/" | 13 #define LAUNCH_AGENTS_DIR "/Library/LaunchAgents/" |
16 #define PREFERENCE_PANES_DIR "/Library/PreferencePanes/" | 14 #define PREFERENCE_PANES_DIR "/Library/PreferencePanes/" |
17 #define LOG_DIR "/var/log/" | 15 #define LOG_DIR "/var/log/" |
18 #define LOG_CONFIG_DIR "/etc/newsyslog.d/" | 16 #define LOG_CONFIG_DIR "/etc/newsyslog.d/" |
19 | 17 |
20 const char kServiceName[] = SERVICE_NAME; | 18 const char kServiceName[] = SERVICE_NAME; |
21 | 19 |
22 const char kPrefPaneFileName[] = PREFPANE_BUNDLE_NAME; | 20 const char kPrefPaneFileName[] = SERVICE_NAME ".prefPane"; |
23 const char kPrefPaneFilePath[] = PREFERENCE_PANES_DIR PREFPANE_BUNDLE_NAME; | 21 const char kPrefPaneFilePath[] = PREFERENCE_PANES_DIR SERVICE_NAME ".prefPane"; |
24 | 22 |
25 const char kHostConfigFileName[] = SERVICE_NAME ".json"; | 23 const char kHostConfigFileName[] = SERVICE_NAME ".json"; |
26 const char kHostConfigFilePath[] = HELPER_TOOLS_DIR SERVICE_NAME ".json"; | 24 const char kHostConfigFilePath[] = HELPER_TOOLS_DIR SERVICE_NAME ".json"; |
27 | 25 |
28 const char kHostHelperScriptPath[] = HELPER_TOOLS_DIR SERVICE_NAME ".me2me.sh"; | 26 const char kHostHelperScriptPath[] = HELPER_TOOLS_DIR SERVICE_NAME ".me2me.sh"; |
29 const char kHostBinaryPath[] = HELPER_TOOLS_DIR HOST_BUNDLE_NAME; | 27 const char kHostBinaryPath[] = HELPER_TOOLS_DIR SERVICE_NAME ".me2me_host.app"; |
30 const char kHostEnabledPath[] = HELPER_TOOLS_DIR SERVICE_NAME ".me2me_enabled"; | 28 const char kHostEnabledPath[] = HELPER_TOOLS_DIR SERVICE_NAME ".me2me_enabled"; |
31 | 29 |
32 const char kServicePlistPath[] = LAUNCH_AGENTS_DIR SERVICE_NAME ".plist"; | 30 const char kServicePlistPath[] = LAUNCH_AGENTS_DIR SERVICE_NAME ".plist"; |
33 | 31 |
34 const char kLogFilePath[] = LOG_DIR SERVICE_NAME ".log"; | 32 const char kLogFilePath[] = LOG_DIR SERVICE_NAME ".log"; |
35 const char kLogFileConfigPath[] = LOG_CONFIG_DIR SERVICE_NAME ".conf"; | 33 const char kLogFileConfigPath[] = LOG_CONFIG_DIR SERVICE_NAME ".conf"; |
36 | 34 |
37 const char kNativeMessagingManifestPath[] = | 35 const char kNativeMessagingManifestPath[] = |
38 "/Library/Google/Chrome/NativeMessagingHosts/" | 36 "/Library/Google/Chrome/NativeMessagingHosts/" |
39 "com.google.chrome.remote_desktop.json"; | 37 "com.google.chrome.remote_desktop.json"; |
40 | 38 |
41 const char kBrandedUninstallerPath[] = APPLICATIONS_DIR | 39 const char kBrandedUninstallerPath[] = APPLICATIONS_DIR |
42 "Chrome Remote Desktop Host Uninstaller.app"; | 40 "Chrome Remote Desktop Host Uninstaller.app"; |
43 const char kUnbrandedUninstallerPath[] = APPLICATIONS_DIR | 41 const char kUnbrandedUninstallerPath[] = APPLICATIONS_DIR |
44 "Chromoting Host Uninstaller.app"; | 42 "Chromoting Host Uninstaller.app"; |
45 | 43 |
46 } // namespace remoting | 44 } // namespace remoting |
OLD | NEW |