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

Unified Diff: remoting/host/plugin/host_script_object.h

Issue 10823083: [Chromoting] Implement the host domain policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 8 years, 5 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/plugin/host_script_object.h
diff --git a/remoting/host/plugin/host_script_object.h b/remoting/host/plugin/host_script_object.h
index ad8ba6d305b026b459143c62dc93d39657ab40c3..abb67346da35a2657b7bd8c0cd9da2c8de1d4596 100644
--- a/remoting/host/plugin/host_script_object.h
+++ b/remoting/host/plugin/host_script_object.h
@@ -48,7 +48,7 @@ class PolicyWatcher;
// NPAPI plugin implementation for remoting host script object.
// HostNPScriptObject creates threads that are required to run
// ChromotingHost and starts/stops the host on those threads. When
-// destroyed it sychronously shuts down the host and all threads.
+// destroyed it synchronously shuts down the host and all threads.
class HostNPScriptObject : public HostStatusObserver {
public:
HostNPScriptObject(NPP plugin, NPObject* parent,
@@ -213,7 +213,10 @@ class HostNPScriptObject : public HostStatusObserver {
void OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies);
// Called when the nat traversal policy is updated.
- void OnNatPolicyUpdate(bool nat_traversal_enabled);
+ void UpdateNatPolicy(bool nat_traversal_enabled);
+
+ // Called when the host domain policy is updated.
+ void UpdateHostDomainPolicy(const std::string& host_domain);
void LocalizeStrings(NPObject* localize_func);
@@ -329,6 +332,9 @@ class HostNPScriptObject : public HostStatusObserver {
// Host the current nat traversal policy setting.
bool nat_traversal_enabled_;
+ // The host domain policy setting.
+ std::string required_host_domain_;
+
// 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
// queried our policy restrictions.

Powered by Google App Engine
This is Rietveld 408576698