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

Side by Side Diff: components/prefs/pref_service.h

Issue 1825173003: [Policy Experimental] Add "recommended" policies for URL exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync. Created 4 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 | « components/policy/resources/policy_templates.json ('k') | components/prefs/pref_service.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 // This provides a way to access the application's current preferences. 5 // This provides a way to access the application's current preferences.
6 6
7 // Chromium settings and storage represent user-selected preferences and 7 // Chromium settings and storage represent user-selected preferences and
8 // information and MUST not be extracted, overwritten or modified except 8 // information and MUST not be extracted, overwritten or modified except
9 // through Chromium defined APIs. 9 // through Chromium defined APIs.
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // browser.window_placement). 76 // browser.window_placement).
77 const std::string name() const; 77 const std::string name() const;
78 78
79 // Returns the registered type of the preference. 79 // Returns the registered type of the preference.
80 base::Value::Type GetType() const; 80 base::Value::Type GetType() const;
81 81
82 // Returns the value of the Preference, falling back to the registered 82 // Returns the value of the Preference, falling back to the registered
83 // default value if no other has been set. 83 // default value if no other has been set.
84 const base::Value* GetValue() const; 84 const base::Value* GetValue() const;
85 85
86 // Returns the value managed by the admin, if any.
87 const base::Value* GetManagedValue() const;
88
86 // Returns the value recommended by the admin, if any. 89 // Returns the value recommended by the admin, if any.
87 const base::Value* GetRecommendedValue() const; 90 const base::Value* GetRecommendedValue() const;
88 91
89 // Returns true if the Preference is managed, i.e. set by an admin policy. 92 // Returns true if the Preference is managed, i.e. set by an admin policy.
90 // Since managed prefs have the highest priority, this also indicates 93 // Since managed prefs have the highest priority, this also indicates
91 // whether the pref is actually being controlled by the policy setting. 94 // whether the pref is actually being controlled by the policy setting.
92 bool IsManaged() const; 95 bool IsManaged() const;
93 96
94 // Returns true if the Preference is controlled by the custodian of the 97 // Returns true if the Preference is controlled by the custodian of the
95 // supervised user. Since a supervised user is not expected to have an admin 98 // supervised user. Since a supervised user is not expected to have an admin
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 382
380 // Local cache of registered Preference objects. The pref_registry_ 383 // Local cache of registered Preference objects. The pref_registry_
381 // is authoritative with respect to what the types and default values 384 // is authoritative with respect to what the types and default values
382 // of registered preferences are. 385 // of registered preferences are.
383 mutable PreferenceMap prefs_map_; 386 mutable PreferenceMap prefs_map_;
384 387
385 DISALLOW_COPY_AND_ASSIGN(PrefService); 388 DISALLOW_COPY_AND_ASSIGN(PrefService);
386 }; 389 };
387 390
388 #endif // COMPONENTS_PREFS_PREF_SERVICE_H_ 391 #endif // COMPONENTS_PREFS_PREF_SERVICE_H_
OLDNEW
« no previous file with comments | « components/policy/resources/policy_templates.json ('k') | components/prefs/pref_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698