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

Side by Side Diff: remoting/host/policy_hack/policy_watcher.h

Issue 20864002: Added PIN-less auth policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 ignored on Windows.
59 // This policy is currently considered 'internal only' and so is not
60 // documented in policy_templates.json.
59 static const char kHostMatchUsernamePolicyName[]; 61 static const char kHostMatchUsernamePolicyName[];
60 62
61 // The name of the policy that controls the host talkgadget prefix. 63 // The name of the policy that controls the host talkgadget prefix.
62 static const char kHostTalkGadgetPrefixPolicyName[]; 64 static const char kHostTalkGadgetPrefixPolicyName[];
63 65
64 // The name of the policy for requiring curtain-mode. 66 // The name of the policy for requiring curtain-mode.
65 static const char kHostRequireCurtainPolicyName[]; 67 static const char kHostRequireCurtainPolicyName[];
66 68
67 // The names of the policies for token authentication URLs. 69 // The names of the policies for token authentication URLs.
68 static const char kHostTokenUrlPolicyName[]; 70 static const char kHostTokenUrlPolicyName[];
69 static const char kHostTokenValidationUrlPolicyName[]; 71 static const char kHostTokenValidationUrlPolicyName[];
70 72
73 // The name of the policy for disabling PIN-less authentication.
74 static const char kHostAllowClientPairing[];
75
71 // The name of the policy for overriding policies, for use in testing. 76 // The name of the policy for overriding policies, for use in testing.
72 static const char kHostDebugOverridePoliciesName[]; 77 static const char kHostDebugOverridePoliciesName[];
73 78
74 protected: 79 protected:
75 virtual void StartWatchingInternal() = 0; 80 virtual void StartWatchingInternal() = 0;
76 virtual void StopWatchingInternal() = 0; 81 virtual void StopWatchingInternal() = 0;
77 virtual void Reload() = 0; 82 virtual void Reload() = 0;
78 83
79 // Used to check if the class is on the right thread. 84 // Used to check if the class is on the right thread.
80 bool OnPolicyWatcherThread() const; 85 bool OnPolicyWatcherThread() const;
(...skipping 20 matching lines...) Expand all
101 scoped_ptr<base::DictionaryValue> bad_type_values_; 106 scoped_ptr<base::DictionaryValue> bad_type_values_;
102 107
103 // Allows us to cancel any inflight FileWatcher events or scheduled reloads. 108 // Allows us to cancel any inflight FileWatcher events or scheduled reloads.
104 base::WeakPtrFactory<PolicyWatcher> weak_factory_; 109 base::WeakPtrFactory<PolicyWatcher> weak_factory_;
105 }; 110 };
106 111
107 } // namespace policy_hack 112 } // namespace policy_hack
108 } // namespace remoting 113 } // namespace remoting
109 114
110 #endif // REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_ 115 #endif // REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_
OLDNEW
« no previous file with comments | « chrome/test/data/policy/policy_test_cases.json ('k') | remoting/host/policy_hack/policy_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698