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

Side by Side Diff: chrome/browser/policy/profile_policy_connector.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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 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 CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ 5 #ifndef CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_
6 #define CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ 6 #define CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" 13 #include "components/browser_context_keyed_service/browser_context_keyed_service .h"
14 14
15 #if defined(OS_CHROMEOS) 15 #if defined(OS_CHROMEOS)
16 #include "chromeos/dbus/dbus_method_call_status.h" 16 #include "chromeos/dbus/dbus_method_call_status.h"
17 #endif 17 #endif
18 18
19 class Profile; 19 class Profile;
20 20
21 namespace base { 21 namespace base {
22 class SequencedTaskRunner; 22 class SequencedTaskRunner;
23 } 23 }
24 24
25 namespace policy { 25 namespace policy {
26 26
27 class DeviceLocalAccountPolicyProvider; 27 class DeviceLocalAccountPolicyProvider;
28 class LoginProfilePolicyProvider;
28 class ManagedModePolicyProvider; 29 class ManagedModePolicyProvider;
29 class PolicyService; 30 class PolicyService;
30 31
31 // A BrowserContextKeyedService that creates and manages the per-Profile policy 32 // A BrowserContextKeyedService that creates and manages the per-Profile policy
32 // components. 33 // components.
33 class ProfilePolicyConnector : public BrowserContextKeyedService { 34 class ProfilePolicyConnector : public BrowserContextKeyedService {
34 public: 35 public:
35 explicit ProfilePolicyConnector(Profile* profile); 36 explicit ProfilePolicyConnector(Profile* profile);
36 virtual ~ProfilePolicyConnector(); 37 virtual ~ProfilePolicyConnector();
37 38
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 Profile* profile_; 78 Profile* profile_;
78 79
79 #if defined(OS_CHROMEOS) 80 #if defined(OS_CHROMEOS)
80 // Some of the user policy configuration affects browser global state, and 81 // Some of the user policy configuration affects browser global state, and
81 // can only come from one Profile. |is_primary_user_| is true if this 82 // can only come from one Profile. |is_primary_user_| is true if this
82 // connector belongs to the first signed-in Profile, and in that case that 83 // connector belongs to the first signed-in Profile, and in that case that
83 // Profile's policy is the one that affects global policy settings in 84 // Profile's policy is the one that affects global policy settings in
84 // local state. 85 // local state.
85 bool is_primary_user_; 86 bool is_primary_user_;
86 87
88 scoped_ptr<LoginProfilePolicyProvider> login_profile_policy_provider_;
89
87 scoped_ptr<DeviceLocalAccountPolicyProvider> 90 scoped_ptr<DeviceLocalAccountPolicyProvider>
88 device_local_account_policy_provider_; 91 device_local_account_policy_provider_;
Mattias Nissler (ping if slow) 2013/06/12 13:55:16 It seems like we can have either login_profile_pol
bartfab (slow) 2013/06/12 18:57:49 Done.
89 92
90 scoped_ptr<PolicyInitializationObserver> user_policy_init_observer_; 93 scoped_ptr<PolicyInitializationObserver> user_policy_init_observer_;
91 #endif 94 #endif
92 95
93 #if defined(ENABLE_MANAGED_USERS) && defined(ENABLE_CONFIGURATION_POLICY) 96 #if defined(ENABLE_MANAGED_USERS) && defined(ENABLE_CONFIGURATION_POLICY)
94 scoped_ptr<ManagedModePolicyProvider> managed_mode_policy_provider_; 97 scoped_ptr<ManagedModePolicyProvider> managed_mode_policy_provider_;
95 #endif 98 #endif
96 99
97 base::WeakPtrFactory<ProfilePolicyConnector> weak_ptr_factory_; 100 base::WeakPtrFactory<ProfilePolicyConnector> weak_ptr_factory_;
98 #endif // ENABLE_CONFIGURATION_POLICY 101 #endif // ENABLE_CONFIGURATION_POLICY
99 102
100 scoped_ptr<PolicyService> policy_service_; 103 scoped_ptr<PolicyService> policy_service_;
101 104
102 DISALLOW_COPY_AND_ASSIGN(ProfilePolicyConnector); 105 DISALLOW_COPY_AND_ASSIGN(ProfilePolicyConnector);
103 }; 106 };
104 107
105 } // namespace policy 108 } // namespace policy
106 109
107 #endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ 110 #endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698