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

Unified Diff: remoting/host/it2me/it2me_host.h

Issue 816903002: It2Me Confirmation Dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows bot failure. Created 5 years, 11 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 | « remoting/host/it2me/it2me_confirmation_dialog_proxy_unittest.cc ('k') | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..944c68fdf38c013b9fbc355d5d83331977471877 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,13 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>,
// Returns true if the host is connected.
bool IsConnected() const;
+ // Presents a confirmation dialog to the user before starting the connection
+ // process.
+ void ShowConfirmationPrompt();
+
+ // Processes the result of the confirmation dialog.
+ void OnConfirmationResult(It2MeConfirmationDialog::Result result);
+
// Called by Connect() to check for policies and start connection process.
void ReadPolicyAndConnect();
@@ -159,6 +169,8 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>,
int failed_login_attempts_;
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_;
« no previous file with comments | « remoting/host/it2me/it2me_confirmation_dialog_proxy_unittest.cc ('k') | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698