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

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

Issue 10825149: [Chromoting] Add new Chromoting enterprise policies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add 'remote access' to caption and desc Created 8 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
« no previous file with comments | « remoting/host/constants.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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Implemented by each platform. This message loop should be an IO message 44 // Implemented by each platform. This message loop should be an IO message
45 // loop. 45 // loop.
46 static PolicyWatcher* Create( 46 static PolicyWatcher* Create(
47 scoped_refptr<base::SingleThreadTaskRunner> task_runner); 47 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
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 kRequireTwoFactorPolicyName[]; 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 talkgadget policy. 58 // The name of the policy that controls the host talkgadget prefix.
59 static const char kTalkGadgetPolicyName[]; 59 static const char kHostTalkGadgetPrefixPolicyName[];
60 60
61 protected: 61 protected:
62 virtual void StartWatchingInternal() = 0; 62 virtual void StartWatchingInternal() = 0;
63 virtual void StopWatchingInternal() = 0; 63 virtual void StopWatchingInternal() = 0;
64 virtual void Reload() = 0; 64 virtual void Reload() = 0;
65 65
66 // Used to check if the class is on the right thread. 66 // Used to check if the class is on the right thread.
67 bool OnPolicyWatcherThread() const; 67 bool OnPolicyWatcherThread() const;
68 68
69 // Takes the policy dictionary from the OS specific store and extracts the 69 // Takes the policy dictionary from the OS specific store and extracts the
(...skipping 21 matching lines...) Expand all
91 scoped_ptr<base::DictionaryValue> old_policies_; 91 scoped_ptr<base::DictionaryValue> old_policies_;
92 92
93 // Allows us to cancel any inflight FileWatcher events or scheduled reloads. 93 // Allows us to cancel any inflight FileWatcher events or scheduled reloads.
94 base::WeakPtrFactory<PolicyWatcher> weak_factory_; 94 base::WeakPtrFactory<PolicyWatcher> weak_factory_;
95 }; 95 };
96 96
97 } // namespace policy_hack 97 } // namespace policy_hack
98 } // namespace remoting 98 } // namespace remoting
99 99
100 #endif // REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_ 100 #endif // REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_
OLDNEW
« no previous file with comments | « remoting/host/constants.cc ('k') | remoting/host/policy_hack/policy_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698