diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-27 02:38:11 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-27 02:38:11 +0000 |
commit | a6b74c21e00d523ac3f7ff609a8df269278a8799 (patch) | |
tree | 89dd73fb4be49af78522e0ef9e353cb58566a7e2 /remoting/client | |
parent | 3e601082ac52a9b4787b0be515e4f654fd40dce7 (diff) | |
download | chromium_src-a6b74c21e00d523ac3f7ff609a8df269278a8799.zip chromium_src-a6b74c21e00d523ac3f7ff609a8df269278a8799.tar.gz chromium_src-a6b74c21e00d523ac3f7ff609a8df269278a8799.tar.bz2 |
Implement exponential backoff for failed Me2Me authentication attempts
BUG=113273
Review URL: https://chromiumcodereview.appspot.com/9836062
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129104 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client')
-rw-r--r-- | remoting/client/plugin/chromoting_instance.cc | 2 | ||||
-rw-r--r-- | remoting/client/plugin/chromoting_instance.h | 1 | ||||
-rw-r--r-- | remoting/client/plugin/pepper_view.cc | 3 |
3 files changed, 6 insertions, 0 deletions
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc index b098fe1..633bc92 100644 --- a/remoting/client/plugin/chromoting_instance.cc +++ b/remoting/client/plugin/chromoting_instance.cc @@ -79,6 +79,8 @@ std::string ConnectionErrorToString(ChromotingInstance::ConnectionError error) { return "INCOMPATIBLE_PROTOCOL"; case ChromotingInstance::ERROR_NETWORK_FAILURE: return "NETWORK_FAILURE"; + case ChromotingInstance::ERROR_HOST_IS_DISABLED: + return "HOST_IS_DISABLED"; } NOTREACHED(); return ""; diff --git a/remoting/client/plugin/chromoting_instance.h b/remoting/client/plugin/chromoting_instance.h index dd7eb42..380e2f1 100644 --- a/remoting/client/plugin/chromoting_instance.h +++ b/remoting/client/plugin/chromoting_instance.h @@ -81,6 +81,7 @@ class ChromotingInstance : ERROR_SESSION_REJECTED, ERROR_INCOMPATIBLE_PROTOCOL, ERROR_NETWORK_FAILURE, + ERROR_HOST_IS_DISABLED, }; // Plugin API version. This should be incremented whenever the API diff --git a/remoting/client/plugin/pepper_view.cc b/remoting/client/plugin/pepper_view.cc index 39e3ab4..0955ac9 100644 --- a/remoting/client/plugin/pepper_view.cc +++ b/remoting/client/plugin/pepper_view.cc @@ -51,6 +51,9 @@ ChromotingInstance::ConnectionError ConvertConnectionError( case protocol::INCOMPATIBLE_PROTOCOL: return ChromotingInstance::ERROR_INCOMPATIBLE_PROTOCOL; + case protocol::HOST_IS_DISABLED: + return ChromotingInstance::ERROR_HOST_IS_DISABLED; + case protocol::CHANNEL_CONNECTION_ERROR: case protocol::SIGNALING_ERROR: case protocol::SIGNALING_TIMEOUT: |