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

Unified Diff: chrome/browser/policy/browser_policy_connector.h

Issue 13035003: Added a PolicyCertVerifier that uses the trust anchors from the ONC policies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/browser_policy_connector.h
diff --git a/chrome/browser/policy/browser_policy_connector.h b/chrome/browser/policy/browser_policy_connector.h
index 3774422070b650bda0f98c99f2e8629db0d1fc47..3752b84605af6071dbd0446c334ccf8dbb5ba8a1 100644
--- a/chrome/browser/policy/browser_policy_connector.h
+++ b/chrome/browser/policy/browser_policy_connector.h
@@ -19,10 +19,12 @@
#endif
class PrefRegistrySimple;
+class PrefRegistrySyncable;
class PrefService;
class Profile;
namespace net {
+class CertTrustAnchorProvider;
class URLRequestContextGetter;
}
@@ -119,6 +121,8 @@ class BrowserPolicyConnector {
NetworkConfigurationUpdater* GetNetworkConfigurationUpdater();
+ net::CertTrustAnchorProvider* GetCertTrustAnchorProvider();
+
DeviceCloudPolicyManagerChromeOS* GetDeviceCloudPolicyManager() {
return device_cloud_policy_manager_.get();
}
@@ -156,9 +160,17 @@ class BrowserPolicyConnector {
// false if the username is empty.
static bool IsNonEnterpriseUser(const std::string& username);
+ // Returns true if |profile| has used certificates installed via policy
+ // to establish a secure connection before. This means that it may have
+ // cached content from an untrusted source.
+ static bool UsedPolicyCertificates(Profile* profile);
+
// Registers refresh rate prefs.
static void RegisterPrefs(PrefRegistrySimple* registry);
+ // Registers Profile prefs related to policy features.
+ static void RegisterUserPrefs(PrefRegistrySyncable* registry);
+
private:
// Set the timezone as soon as the policies are available.
void SetTimezoneIfPolicyAvailable();
« no previous file with comments | « chrome/browser/chromeos/policy/policy_cert_verifier_browsertest.cc ('k') | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698