Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: remoting/host/chromoting_host.h

Issue 1061903002: Disable chromoting service on permanent errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | remoting/host/daemon_process.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host.h
diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h
index a6b18115d819ae952974dee190099517a76b4fb4..8baee1ed357232578d92f034fc545bdc6fa992b7 100644
--- a/remoting/host/chromoting_host.h
+++ b/remoting/host/chromoting_host.h
@@ -17,6 +17,7 @@
#include "base/threading/thread.h"
#include "net/base/backoff_entry.h"
#include "remoting/host/client_session.h"
+#include "remoting/host/host_exit_codes.h"
#include "remoting/host/host_extension.h"
#include "remoting/host/host_status_monitor.h"
#include "remoting/host/host_status_observer.h"
@@ -88,6 +89,7 @@ class ChromotingHost : public base::NonThreadSafe,
//
// This method can only be called once during the lifetime of this object.
void Start(const std::string& host_owner);
+ void SetExitCode(HostExitCodes exit_code);
// HostStatusMonitor interface.
void AddStatusObserver(HostStatusObserver* observer) override;
@@ -192,6 +194,7 @@ class ChromotingHost : public base::NonThreadSafe,
// True if the host has been started.
bool started_;
+ HostExitCodes exit_code_;
// Configuration of the protocol.
scoped_ptr<protocol::CandidateSessionConfig> protocol_config_;
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | remoting/host/daemon_process.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698