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

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

Issue 2488573003: Expose signing key from cloud policy stores (Closed)
Patch Set: Rebase Created 4 years 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
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 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_STORE_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_STORE_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_STORE_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_STORE_CHROMEOS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 const std::string& sanitized_username); 94 const std::string& sanitized_username);
95 95
96 std::unique_ptr<UserCloudPolicyValidator> CreateValidatorForLoad( 96 std::unique_ptr<UserCloudPolicyValidator> CreateValidatorForLoad(
97 std::unique_ptr<enterprise_management::PolicyFetchResponse> policy); 97 std::unique_ptr<enterprise_management::PolicyFetchResponse> policy);
98 98
99 chromeos::CryptohomeClient* cryptohome_client_; 99 chromeos::CryptohomeClient* cryptohome_client_;
100 chromeos::SessionManagerClient* session_manager_client_; 100 chromeos::SessionManagerClient* session_manager_client_;
101 const AccountId account_id_; 101 const AccountId account_id_;
102 base::FilePath user_policy_key_dir_; 102 base::FilePath user_policy_key_dir_;
103 103
104 bool policy_key_loaded_; 104 // The current key used to verify signatures of policy. This value is loaded
105 base::FilePath policy_key_path_; 105 // from the key cache file (which is owned and kept up to date by the Chrome
106 std::string policy_key_; 106 // OS session manager). This is, generally, different from
107 // |policy_signature_public_key_|, which always corresponds to the currently
108 // effective policy.
109 std::string cached_policy_key_;
110 bool cached_policy_key_loaded_ = false;
111 base::FilePath cached_policy_key_path_;
107 112
108 base::WeakPtrFactory<UserCloudPolicyStoreChromeOS> weak_factory_; 113 base::WeakPtrFactory<UserCloudPolicyStoreChromeOS> weak_factory_;
109 114
110 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyStoreChromeOS); 115 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyStoreChromeOS);
111 }; 116 };
112 117
113 } // namespace policy 118 } // namespace policy
114 119
115 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_STORE_CHROMEOS_H_ 120 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_STORE_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698