| Index: remoting/host/it2me/it2me_host.h
|
| diff --git a/remoting/host/it2me/it2me_host.h b/remoting/host/it2me/it2me_host.h
|
| index 15921c6246c83df550993bdb30277addcb4395f9..21bda0fd2c964691c7ace9311ff1172035cdd141 100644
|
| --- a/remoting/host/it2me/it2me_host.h
|
| +++ b/remoting/host/it2me/it2me_host.h
|
| @@ -10,6 +10,8 @@
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/single_thread_task_runner.h"
|
| #include "remoting/host/host_status_observer.h"
|
| +#include "remoting/host/it2me/it2me_confirmation_dialog.h"
|
| +#include "remoting/host/it2me/it2me_confirmation_dialog_proxy.h"
|
| #include "remoting/signaling/xmpp_signal_strategy.h"
|
|
|
| namespace base {
|
| @@ -64,6 +66,7 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>,
|
| It2MeHost(
|
| scoped_ptr<ChromotingHostContext> context,
|
| scoped_ptr<policy_hack::PolicyWatcher> policy_watcher,
|
| + scoped_ptr<It2MeConfirmationDialogFactory> confirmation_dialog_factory,
|
| base::WeakPtr<It2MeHost::Observer> observer,
|
| const XmppSignalStrategy::XmppServerConfig& xmpp_server_config,
|
| const std::string& directory_bot_jid);
|
| @@ -106,6 +109,10 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>,
|
| // Returns true if the host is connected.
|
| bool IsConnected() const;
|
|
|
| + void ConfirmAndConnect();
|
| +
|
| + void OnConfirmationResult(It2MeConfirmationDialog::Result result);
|
| +
|
| // Called by Connect() to check for policies and start connection process.
|
| void ReadPolicyAndConnect();
|
|
|
| @@ -160,6 +167,9 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>,
|
|
|
| scoped_ptr<policy_hack::PolicyWatcher> policy_watcher_;
|
|
|
| + scoped_ptr<It2MeConfirmationDialogFactory> confirmation_dialog_factory_;
|
| + scoped_ptr<It2MeConfirmationDialogProxy> confirmation_dialog_proxy_;
|
| +
|
| // Host the current nat traversal policy setting.
|
| bool nat_traversal_enabled_;
|
|
|
|
|