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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 static const char kHostRequireCurtainPolicyName[]; | 67 static const char kHostRequireCurtainPolicyName[]; |
68 | 68 |
69 // The names of the policies for token authentication URLs. | 69 // The names of the policies for token authentication URLs. |
70 static const char kHostTokenUrlPolicyName[]; | 70 static const char kHostTokenUrlPolicyName[]; |
71 static const char kHostTokenValidationUrlPolicyName[]; | 71 static const char kHostTokenValidationUrlPolicyName[]; |
72 static const char kHostTokenValidationCertIssuerPolicyName[]; | 72 static const char kHostTokenValidationCertIssuerPolicyName[]; |
73 | 73 |
74 // The name of the policy for disabling PIN-less authentication. | 74 // The name of the policy for disabling PIN-less authentication. |
75 static const char kHostAllowClientPairing[]; | 75 static const char kHostAllowClientPairing[]; |
76 | 76 |
| 77 // The name of the policy for disabling gnubbyd forwarding. |
| 78 static const char kHostAllowGnubbyAuthPolicyName[]; |
| 79 |
77 // The name of the policy for overriding policies, for use in testing. | 80 // The name of the policy for overriding policies, for use in testing. |
78 static const char kHostDebugOverridePoliciesName[]; | 81 static const char kHostDebugOverridePoliciesName[]; |
79 | 82 |
80 protected: | 83 protected: |
81 virtual void StartWatchingInternal() = 0; | 84 virtual void StartWatchingInternal() = 0; |
82 virtual void StopWatchingInternal() = 0; | 85 virtual void StopWatchingInternal() = 0; |
83 virtual void Reload() = 0; | 86 virtual void Reload() = 0; |
84 | 87 |
85 // Used to check if the class is on the right thread. | 88 // Used to check if the class is on the right thread. |
86 bool OnPolicyWatcherThread() const; | 89 bool OnPolicyWatcherThread() const; |
(...skipping 20 matching lines...) Expand all Loading... |
107 scoped_ptr<base::DictionaryValue> bad_type_values_; | 110 scoped_ptr<base::DictionaryValue> bad_type_values_; |
108 | 111 |
109 // Allows us to cancel any inflight FileWatcher events or scheduled reloads. | 112 // Allows us to cancel any inflight FileWatcher events or scheduled reloads. |
110 base::WeakPtrFactory<PolicyWatcher> weak_factory_; | 113 base::WeakPtrFactory<PolicyWatcher> weak_factory_; |
111 }; | 114 }; |
112 | 115 |
113 } // namespace policy_hack | 116 } // namespace policy_hack |
114 } // namespace remoting | 117 } // namespace remoting |
115 | 118 |
116 #endif // REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_ | 119 #endif // REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_ |
OLD | NEW |