Chromium Code Reviews| 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..c07dfd98b5c0a2ce5e150717c5055627bb43b43a 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 host_domain_; |
|
Sergey Ulanov
2012/07/31 20:59:53
call it required_host_domain_ to make it less conf
simonmorris
2012/07/31 23:16:10
Done.
|
| + |
| // 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. |