12a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved. 22a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 32a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// found in the LICENSE file. 42a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 52a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)'use strict'; 62a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 72a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)/** @suppress {duplicate} */ 82a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)var remoting = remoting || {}; 92a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)/** 112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * @enum {string} All error messages from messages.json 122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) */ 132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)remoting.Error = { 14eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch // Used to signify that an operation was cancelled by the user. This should 15eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch // not normally cause the error text to be shown to the user, so the 16eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch // i18n-content prefix is not needed in this case. 17eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch CANCELLED: '__CANCELLED__', 18eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch 192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) INVALID_ACCESS_CODE: /*i18n-content*/'ERROR_INVALID_ACCESS_CODE', 202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) MISSING_PLUGIN: /*i18n-content*/'ERROR_MISSING_PLUGIN', 212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) AUTHENTICATION_FAILED: /*i18n-content*/'ERROR_AUTHENTICATION_FAILED', 222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) HOST_IS_OFFLINE: /*i18n-content*/'ERROR_HOST_IS_OFFLINE', 232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) INCOMPATIBLE_PROTOCOL: /*i18n-content*/'ERROR_INCOMPATIBLE_PROTOCOL', 242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) BAD_PLUGIN_VERSION: /*i18n-content*/'ERROR_BAD_PLUGIN_VERSION', 252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) NETWORK_FAILURE: /*i18n-content*/'ERROR_NETWORK_FAILURE', 262a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) HOST_OVERLOAD: /*i18n-content*/'ERROR_HOST_OVERLOAD', 272a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) UNEXPECTED: /*i18n-content*/'ERROR_UNEXPECTED', 282a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) SERVICE_UNAVAILABLE: /*i18n-content*/'ERROR_SERVICE_UNAVAILABLE', 292a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) NOT_AUTHENTICATED: /*i18n-content*/'ERROR_NOT_AUTHENTICATED', 302a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) INVALID_HOST_DOMAIN: /*i18n-content*/'ERROR_INVALID_HOST_DOMAIN', 31eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch P2P_FAILURE: /*i18n-content*/'ERROR_P2P_FAILURE', 32eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch REGISTRATION_FAILED: /*i18n-content*/'ERROR_HOST_REGISTRATION_FAILED' 332a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)}; 34