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

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

Issue 2912143002: Host port range policy is no longer ignored in it2me host. (Closed)
Patch Set: Created 3 years, 7 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/chromoting_host.h ('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 18df48cdcf3c9a93f354495ecf945f81f6626312..0bd61cecaafd61f81629770d5c1886793c552854 100644
--- a/remoting/host/it2me/it2me_host.h
+++ b/remoting/host/it2me/it2me_host.h
@@ -9,12 +9,14 @@
#include <string>
#include <vector>
+#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.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/protocol/port_range.h"
#include "remoting/protocol/validating_authenticator.h"
#include "remoting/signaling/xmpp_signal_strategy.h"
@@ -105,6 +107,9 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>,
base::WeakPtr<It2MeHost::Observer> observer() { return observer_; }
private:
+ FRIEND_TEST_ALL_PREFIXES(It2MeHostTest, HostUdpPortRangePolicy_ValidRange);
+ FRIEND_TEST_ALL_PREFIXES(It2MeHostTest, HostUdpPortRangePolicy_NoRange);
+
// Updates state of the host. Can be called only on the network thread.
void SetState(It2MeHostState state, const std::string& error_message);
@@ -132,6 +137,7 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>,
void UpdateHostDomainListPolicy(std::vector<std::string> host_domain_list);
void UpdateClientDomainListPolicy(
std::vector<std::string> client_domain_list);
+ void UpdateHostUdpPortRangePolicy(const std::string& port_range_string);
void DisconnectOnNetworkThread();
@@ -169,6 +175,9 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>,
std::vector<std::string> required_client_domain_list_;
std::vector<std::string> required_host_domain_list_;
+ // The host port range policy setting.
+ PortRange udp_port_range_;
+
// Tracks the JID of the remote user when in a connecting state.
std::string connecting_jid_;
« no previous file with comments | « remoting/host/chromoting_host.h ('k') | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698