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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 // The name of the username policy. | 58 // The name of the username policy. |
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. |
| 68 static const char kHostTokenUrlPolicyName[]; |
| 69 static const char kHostTokenValidationUrlPolicyName[]; |
| 70 |
67 // The name of the policy for overriding policies, for use in testing. | 71 // The name of the policy for overriding policies, for use in testing. |
68 static const char kHostDebugOverridePoliciesName[]; | 72 static const char kHostDebugOverridePoliciesName[]; |
69 | 73 |
70 protected: | 74 protected: |
71 virtual void StartWatchingInternal() = 0; | 75 virtual void StartWatchingInternal() = 0; |
72 virtual void StopWatchingInternal() = 0; | 76 virtual void StopWatchingInternal() = 0; |
73 virtual void Reload() = 0; | 77 virtual void Reload() = 0; |
74 | 78 |
75 // Used to check if the class is on the right thread. | 79 // Used to check if the class is on the right thread. |
76 bool OnPolicyWatcherThread() const; | 80 bool OnPolicyWatcherThread() const; |
(...skipping 20 matching lines...) Expand all Loading... |
97 scoped_ptr<base::DictionaryValue> bad_type_values_; | 101 scoped_ptr<base::DictionaryValue> bad_type_values_; |
98 | 102 |
99 // Allows us to cancel any inflight FileWatcher events or scheduled reloads. | 103 // Allows us to cancel any inflight FileWatcher events or scheduled reloads. |
100 base::WeakPtrFactory<PolicyWatcher> weak_factory_; | 104 base::WeakPtrFactory<PolicyWatcher> weak_factory_; |
101 }; | 105 }; |
102 | 106 |
103 } // namespace policy_hack | 107 } // namespace policy_hack |
104 } // namespace remoting | 108 } // namespace remoting |
105 | 109 |
106 #endif // REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_ | 110 #endif // REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_ |
OLD | NEW |