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

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

Issue 2682473003: Add support for multiple allowed domains (Closed)
Patch Set: Rework to follow a deprecation approach Created 3 years, 8 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 76b6d034b967ec79f8f173d915e3595cba9a0d58..95390c440677daabff29010184231c9df4b4bd63 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"
@@ -137,8 +138,9 @@ 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 UpdateClientDomainPolicy(const std::string& client_domain);
+ void UpdateHostDomainListPolicy(std::vector<std::string> host_domain_list);
Jamie 2017/04/19 00:29:02 Pass by const reference, please.
+ void UpdateClientDomainListPolicy(
+ std::vector<std::string> client_domain_list);
void DisconnectOnNetworkThread();
@@ -174,8 +176,8 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>,
bool nat_traversal_enabled_ = false;
// The client and host domain policy setting.
- std::string required_client_domain_;
- std::string required_host_domain_;
+ std::vector<std::string> required_client_domain_list_;
+ std::vector<std::string> required_host_domain_list_;
// Tracks the JID of the remote user when in a connecting state.
std::string connecting_jid_;

Powered by Google App Engine
This is Rietveld 408576698