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

Side by Side Diff: chrome/browser/policy/profile_policy_connector.h

Issue 7014036: Split the policy refresh rate preference into user- and device-policy refresh rate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits. Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "chrome/browser/policy/configuration_policy_provider.h" 12 #include "chrome/browser/policy/configuration_policy_provider.h"
13 #include "chrome/browser/prefs/pref_change_registrar.h"
13 #include "chrome/browser/profiles/profile_keyed_service.h" 14 #include "chrome/browser/profiles/profile_keyed_service.h"
14 15
15 class Profile; 16 class Profile;
16 17
17 namespace policy { 18 namespace policy {
18 19
19 class CloudPolicySubsystem; 20 class CloudPolicySubsystem;
20 class UserPolicyIdentityStrategy; 21 class UserPolicyIdentityStrategy;
21 22
22 // This class is a container for the profile-specific policy bits located in the 23 // This class is a container for the profile-specific policy bits located in the
(...skipping 26 matching lines...) Expand all
49 50
50 private: 51 private:
51 Profile* profile_; 52 Profile* profile_;
52 53
53 scoped_ptr<UserPolicyIdentityStrategy> identity_strategy_; 54 scoped_ptr<UserPolicyIdentityStrategy> identity_strategy_;
54 scoped_ptr<CloudPolicySubsystem> cloud_policy_subsystem_; 55 scoped_ptr<CloudPolicySubsystem> cloud_policy_subsystem_;
55 56
56 scoped_ptr<ConfigurationPolicyProvider> managed_cloud_provider_; 57 scoped_ptr<ConfigurationPolicyProvider> managed_cloud_provider_;
57 scoped_ptr<ConfigurationPolicyProvider> recommended_cloud_provider_; 58 scoped_ptr<ConfigurationPolicyProvider> recommended_cloud_provider_;
58 59
60 // Temporarily needed until we can serve user policy to local state.
61 PrefChangeRegistrar profile_pref_registrar_;
62
59 DISALLOW_COPY_AND_ASSIGN(ProfilePolicyConnector); 63 DISALLOW_COPY_AND_ASSIGN(ProfilePolicyConnector);
60 }; 64 };
61 65
62 // A wrapper for the ProfilePolicyConnector's cloud providers. 66 // A wrapper for the ProfilePolicyConnector's cloud providers.
63 // 67 //
64 // Some well-known policies that are not provided by the 68 // Some well-known policies that are not provided by the
65 // |profile_policy_provider_| are instead provided by the 69 // |profile_policy_provider_| are instead provided by the
66 // |browser_policy_provider_|, thus merging device policies into 70 // |browser_policy_provider_|, thus merging device policies into
67 // profile policies. 71 // profile policies.
68 // 72 //
(...skipping 24 matching lines...) Expand all
93 scoped_ptr<ConfigurationPolicyObserverRegistrar> profile_registrar_; 97 scoped_ptr<ConfigurationPolicyObserverRegistrar> profile_registrar_;
94 ObserverList<ConfigurationPolicyProvider::Observer, true> observer_list_; 98 ObserverList<ConfigurationPolicyProvider::Observer, true> observer_list_;
95 99
96 DISALLOW_COPY_AND_ASSIGN(MergingPolicyProvider); 100 DISALLOW_COPY_AND_ASSIGN(MergingPolicyProvider);
97 }; 101 };
98 102
99 103
100 } // namespace policy 104 } // namespace policy
101 105
102 #endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ 106 #endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/device_policy_cache_unittest.cc ('k') | chrome/browser/policy/profile_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698