Index: remoting/host/it2me/it2me_host.h |
diff --git a/remoting/host/it2me/it2me_host.h b/remoting/host/it2me/it2me_host.h |
index 964f911eb6179c222b853d14e5671126607d643f..efeb6428f0e64eee0a95115fdd8f04442c89ef60 100644 |
--- a/remoting/host/it2me/it2me_host.h |
+++ b/remoting/host/it2me/it2me_host.h |
@@ -98,10 +98,15 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>, |
void SetPolicyForTesting(std::unique_ptr<base::DictionaryValue> policies, |
const base::Closure& done_callback); |
- // Returns the callback used for validating the connection. Do not run the |
- // returned callback after this object has been destroyed. |
+ // Returns the callback used for validating incoming connections. |
+ // Do not run the returned callback after this object has been destroyed. |
protocol::ValidatingAuthenticator::ValidationCallback |
- GetValidationCallbackForTesting(); |
+ GetIncomingConnectionCallbackForTesting(); |
+ |
+ // Returns the callback used for validating accepted connections. |
+ // Do not run the returned callback after this object has been destroyed. |
+ protocol::ValidatingAuthenticator::ValidationCallback |
+ GetAcceptedConnectionCallbackForTesting(); |
protected: |
friend class base::RefCountedThreadSafe<It2MeHost>; |
@@ -153,6 +158,11 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>, |
const std::string& remote_jid, |
const protocol::ValidatingAuthenticator::ResultCallback& result_callback); |
+ // Allows the user to accept or reject the connection before it is completed. |
+ void ShowConfirmationDialog( |
+ const std::string& remote_jid, |
+ const protocol::ValidatingAuthenticator::ResultCallback& result_callback); |
+ |
// Caller supplied fields. |
std::unique_ptr<ChromotingHostContext> host_context_; |
base::WeakPtr<It2MeHost::Observer> observer_; |
@@ -193,10 +203,6 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>, |
// variable contains the thunk if it is necessary. |
base::Closure pending_connect_; |
- // Called after the client machine initiates the connection process and |
- // determines whether to reject the connection or allow it to continue. |
- protocol::ValidatingAuthenticator::ValidationCallback validation_callback_; |
- |
DISALLOW_COPY_AND_ASSIGN(It2MeHost); |
}; |