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