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

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

Issue 2682473003: Add support for multiple allowed domains (Closed)
Patch Set: Created 3 years, 10 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
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..6305574ed34a114742689ef41f0eee7ffa6e7c73 100644
--- a/remoting/host/it2me/it2me_host.h
+++ b/remoting/host/it2me/it2me_host.h
@@ -7,6 +7,7 @@
#include <memory>
#include <string>
+#include <vector>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -143,7 +144,10 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>,
// Handlers for NAT traversal and domain policies.
void UpdateNatPolicy(bool nat_traversal_enabled);
void UpdateHostDomainPolicy(const std::string& host_domain);
+ void UpdateHostDomainListPolicy(std::vector<std::string> host_domain_list);
void UpdateClientDomainPolicy(const std::string& client_domain);
+ void UpdateClientDomainListPolicy(
+ std::vector<std::string> client_domain_list);
void DisconnectOnNetworkThread();
@@ -180,7 +184,9 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>,
// The client and host domain policy setting.
std::string required_client_domain_;
+ std::vector<std::string> required_client_domain_list_;
std::string required_host_domain_;
+ std::vector<std::string> required_host_domain_list_;
// Indicates whether or not a policy has ever been read. This is to ensure
// that on startup, we do not accidentally start a connection before we have

Powered by Google App Engine
This is Rietveld 408576698