summaryrefslogtreecommitdiffstats
path: root/remoting/host/constants.h
blob: 9358583f1812d3aec665c3bc8d590d9a108b5251 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef REMOTING_HOST_CONSTANTS_H_
#define REMOTING_HOST_CONSTANTS_H_

#include "base/string16.h"

namespace remoting {

// Known host exit codes.
// Please keep this enum in sync with:
// remoting/host/installer/mac/PrivilegedHelperTools/
// org.chromium.chromoting.me2me.sh
enum HostExitCodes {
  kSuccessExitCode = 0,
  kReservedForX11ExitCode = 1,
  kInvalidHostConfigurationExitCode = 2,
  kInvalidHostIdExitCode = 3,
  kInvalidOauthCredentialsExitCode = 4,

  // The range of the exit codes that should be interpreted as a permanent error
  // condition.
  kMinPermanentErrorExitCode = kInvalidHostConfigurationExitCode,
  kMaxPermanentErrorExitCode = kInvalidOauthCredentialsExitCode
};

#if defined(OS_WIN)

// The Omaha Appid of the host.
extern const char16 kHostOmahaAppid[];

#endif  // defined(OS_WIN)

}  // namespace remoting

#endif  // REMOTING_HOST_CONSTANTS_H_