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

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

Issue 138753005: Add gnubby authentication to remoting host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // The name of the policy for requiring curtain-mode. 66 // The name of the policy for requiring curtain-mode.
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 72
73 // The name of the policy for disabling PIN-less authentication. 73 // The name of the policy for disabling PIN-less authentication.
74 static const char kHostAllowClientPairing[]; 74 static const char kHostAllowClientPairing[];
75 75
76 // The name of the policy for disabling gnubbyd forwarding.
77 static const char kHostAllowGnubbyAuthPolicyName[];
78
76 // The name of the policy for overriding policies, for use in testing. 79 // The name of the policy for overriding policies, for use in testing.
77 static const char kHostDebugOverridePoliciesName[]; 80 static const char kHostDebugOverridePoliciesName[];
78 81
79 protected: 82 protected:
80 virtual void StartWatchingInternal() = 0; 83 virtual void StartWatchingInternal() = 0;
81 virtual void StopWatchingInternal() = 0; 84 virtual void StopWatchingInternal() = 0;
82 virtual void Reload() = 0; 85 virtual void Reload() = 0;
83 86
84 // Used to check if the class is on the right thread. 87 // Used to check if the class is on the right thread.
85 bool OnPolicyWatcherThread() const; 88 bool OnPolicyWatcherThread() const;
(...skipping 20 matching lines...) Expand all
106 scoped_ptr<base::DictionaryValue> bad_type_values_; 109 scoped_ptr<base::DictionaryValue> bad_type_values_;
107 110
108 // Allows us to cancel any inflight FileWatcher events or scheduled reloads. 111 // Allows us to cancel any inflight FileWatcher events or scheduled reloads.
109 base::WeakPtrFactory<PolicyWatcher> weak_factory_; 112 base::WeakPtrFactory<PolicyWatcher> weak_factory_;
110 }; 113 };
111 114
112 } // namespace policy_hack 115 } // namespace policy_hack
113 } // namespace remoting 116 } // namespace remoting
114 117
115 #endif // REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_ 118 #endif // REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698