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

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

Issue 209323002: New policies: enable/disable relay; port range (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed android build. Created 6 years, 7 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
« no previous file with comments | « remoting/host/it2me/it2me_host.cc ('k') | remoting/host/policy_hack/policy_watcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 77 // The name of the policy for disabling gnubbyd forwarding.
78 static const char kHostAllowGnubbyAuthPolicyName[]; 78 static const char kHostAllowGnubbyAuthPolicyName[];
79 79
80 // The name of the policy for allowing use of relay servers.
81 static const char kRelayPolicyName[];
82
83 // The name of the policy that restricts the range of host UDP ports.
84 static const char kUdpPortRangePolicyName[];
85
80 // The name of the policy for overriding policies, for use in testing. 86 // The name of the policy for overriding policies, for use in testing.
81 static const char kHostDebugOverridePoliciesName[]; 87 static const char kHostDebugOverridePoliciesName[];
82 88
83 protected: 89 protected:
84 virtual void StartWatchingInternal() = 0; 90 virtual void StartWatchingInternal() = 0;
85 virtual void StopWatchingInternal() = 0; 91 virtual void StopWatchingInternal() = 0;
86 virtual void Reload() = 0; 92 virtual void Reload() = 0;
87 93
88 // Used to check if the class is on the right thread. 94 // Used to check if the class is on the right thread.
89 bool OnPolicyWatcherThread() const; 95 bool OnPolicyWatcherThread() const;
(...skipping 20 matching lines...) Expand all
110 scoped_ptr<base::DictionaryValue> bad_type_values_; 116 scoped_ptr<base::DictionaryValue> bad_type_values_;
111 117
112 // Allows us to cancel any inflight FileWatcher events or scheduled reloads. 118 // Allows us to cancel any inflight FileWatcher events or scheduled reloads.
113 base::WeakPtrFactory<PolicyWatcher> weak_factory_; 119 base::WeakPtrFactory<PolicyWatcher> weak_factory_;
114 }; 120 };
115 121
116 } // namespace policy_hack 122 } // namespace policy_hack
117 } // namespace remoting 123 } // namespace remoting
118 124
119 #endif // REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_ 125 #endif // REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_
OLDNEW
« no previous file with comments | « remoting/host/it2me/it2me_host.cc ('k') | remoting/host/policy_hack/policy_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698