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

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

Issue 12313085: Host-side third party token validation (Closed) Base URL: http://git.chromium.org/chromium/src.git@third_party_auth_protocol
Patch Set: Add TODO comment Created 7 years, 8 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
« no previous file with comments | « no previous file | 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/policy_hack/policy_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698