Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_ | 5 #ifndef REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_ |
| 6 #define REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_ | 6 #define REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 | 48 |
| 49 // The name of the NAT traversal policy. | 49 // The name of the NAT traversal policy. |
| 50 static const char kNatPolicyName[]; | 50 static const char kNatPolicyName[]; |
| 51 | 51 |
| 52 // The name of the policy for requiring 2-factor authentication. | 52 // The name of the policy for requiring 2-factor authentication. |
| 53 static const char kHostRequireTwoFactorPolicyName[]; | 53 static const char kHostRequireTwoFactorPolicyName[]; |
| 54 | 54 |
| 55 // The name of the host domain policy. | 55 // The name of the host domain policy. |
| 56 static const char kHostDomainPolicyName[]; | 56 static const char kHostDomainPolicyName[]; |
| 57 | 57 |
| 58 // The name of the username policy. | 58 // The name of the username policy. This policy is not supported on Windows. |
|
alexeypa (please no reviews)
2013/07/26 23:40:25
nit#1: "not supported" -> "ignored" or "not used"
Jamie
2013/07/27 00:26:22
#1 Done.
I'm not convinced of the value of #2, bu
| |
| 59 static const char kHostMatchUsernamePolicyName[]; | 59 static const char kHostMatchUsernamePolicyName[]; |
| 60 | 60 |
| 61 // The name of the policy that controls the host talkgadget prefix. | 61 // The name of the policy that controls the host talkgadget prefix. |
| 62 static const char kHostTalkGadgetPrefixPolicyName[]; | 62 static const char kHostTalkGadgetPrefixPolicyName[]; |
| 63 | 63 |
| 64 // The name of the policy for requiring curtain-mode. | 64 // The name of the policy for requiring curtain-mode. |
| 65 static const char kHostRequireCurtainPolicyName[]; | 65 static const char kHostRequireCurtainPolicyName[]; |
| 66 | 66 |
| 67 // The names of the policies for token authentication URLs. | 67 // The names of the policies for token authentication URLs. |
| 68 static const char kHostTokenUrlPolicyName[]; | 68 static const char kHostTokenUrlPolicyName[]; |
| 69 static const char kHostTokenValidationUrlPolicyName[]; | 69 static const char kHostTokenValidationUrlPolicyName[]; |
| 70 | 70 |
| 71 // The name of the policy for disabling PIN-less authentication. | |
| 72 static const char kHostAllowClientPairing[]; | |
| 73 | |
| 71 // The name of the policy for overriding policies, for use in testing. | 74 // The name of the policy for overriding policies, for use in testing. |
| 72 static const char kHostDebugOverridePoliciesName[]; | 75 static const char kHostDebugOverridePoliciesName[]; |
| 73 | 76 |
| 74 protected: | 77 protected: |
| 75 virtual void StartWatchingInternal() = 0; | 78 virtual void StartWatchingInternal() = 0; |
| 76 virtual void StopWatchingInternal() = 0; | 79 virtual void StopWatchingInternal() = 0; |
| 77 virtual void Reload() = 0; | 80 virtual void Reload() = 0; |
| 78 | 81 |
| 79 // Used to check if the class is on the right thread. | 82 // Used to check if the class is on the right thread. |
| 80 bool OnPolicyWatcherThread() const; | 83 bool OnPolicyWatcherThread() const; |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 101 scoped_ptr<base::DictionaryValue> bad_type_values_; | 104 scoped_ptr<base::DictionaryValue> bad_type_values_; |
| 102 | 105 |
| 103 // Allows us to cancel any inflight FileWatcher events or scheduled reloads. | 106 // Allows us to cancel any inflight FileWatcher events or scheduled reloads. |
| 104 base::WeakPtrFactory<PolicyWatcher> weak_factory_; | 107 base::WeakPtrFactory<PolicyWatcher> weak_factory_; |
| 105 }; | 108 }; |
| 106 | 109 |
| 107 } // namespace policy_hack | 110 } // namespace policy_hack |
| 108 } // namespace remoting | 111 } // namespace remoting |
| 109 | 112 |
| 110 #endif // REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_ | 113 #endif // REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_ |
| OLD | NEW |