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

Side by Side Diff: chrome/browser/chromeos/policy/login_profile_policy_provider.h

Issue 16658015: Add device policies to control accessibility settings on the login screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copy&paste mistake found by clang. Created 7 years, 6 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_PROFILE_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_PROFILE_POLICY_PROVIDER_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/weak_ptr.h"
11 #include "chrome/browser/policy/configuration_policy_provider.h"
12 #include "chrome/browser/policy/policy_service.h"
13
14 namespace policy {
15
16 // Policy provider for the login profile. Since the login profile is not
17 // associated with any user, it does not receive regular user policy. However,
18 // several device policies that control features on the login screen surface as
19 // recommended user policies in the login profile.
20 class LoginProfilePolicyProvider : public ConfigurationPolicyProvider,
21 public PolicyService::Observer {
22 public:
23 explicit LoginProfilePolicyProvider(PolicyService* device_policy_service);
24 virtual ~LoginProfilePolicyProvider();
25
26 // ConfigurationPolicyProvider:
27 virtual void Init() OVERRIDE;
28 virtual void Shutdown() OVERRIDE;
29 virtual bool IsInitializationComplete(PolicyDomain domain) const OVERRIDE;
30 virtual void RefreshPolicies() OVERRIDE;
31
32 // PolicyService::Observer:
33 virtual void OnPolicyUpdated(const PolicyNamespace& ns,
34 const PolicyMap& previous,
35 const PolicyMap& current) OVERRIDE;
36 virtual void OnPolicyServiceInitialized(PolicyDomain domain) OVERRIDE;
37
38 private:
39 void UpdateFromDevicePolicy();
40
41 PolicyService* device_policy_service_; // Not owned.
42
43 base::WeakPtrFactory<LoginProfilePolicyProvider> weak_factory_;
44
45 DISALLOW_COPY_AND_ASSIGN(LoginProfilePolicyProvider);
46 };
47
48 } // namespace policy
49
50 #endif // CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_PROFILE_POLICY_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698