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

Unified Diff: components/policy/core/common/cloud/cloud_policy_client.h

Issue 2276593004: Device registration using an enrollment certificate from the PCA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed constant. Created 4 years, 4 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
« no previous file with comments | « components/policy/core/common/BUILD.gn ('k') | components/policy/core/common/cloud/cloud_policy_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/cloud/cloud_policy_client.h
diff --git a/components/policy/core/common/cloud/cloud_policy_client.h b/components/policy/core/common/cloud/cloud_policy_client.h
index edd9555a029a2e8983427e250e96f7b02efb12bb..d2e3f8775256a9297ce8dfa6522cd9f0c9c77bf0 100644
--- a/components/policy/core/common/cloud/cloud_policy_client.h
+++ b/components/policy/core/common/cloud/cloud_policy_client.h
@@ -24,10 +24,6 @@
#include "components/policy/policy_export.h"
#include "components/policy/proto/device_management_backend.pb.h"
-namespace cryptohome {
-class AsyncMethodCaller;
-}
-
namespace net {
class URLRequestContextGetter;
}
@@ -36,6 +32,7 @@ namespace policy {
class DeviceManagementRequestJob;
class DeviceManagementService;
+class SigningService;
// Implements the core logic required to talk to the device management service.
// Also keeps track of the current state of the association with the service,
@@ -83,18 +80,7 @@ class POLICY_EXPORT CloudPolicyClient {
virtual void OnClientError(CloudPolicyClient* client) = 0;
};
- // Data signing interface.
- class POLICY_EXPORT SigningService {
- public:
- using SigningCallback = base::Callback<void(bool success,
- enterprise_management::SignedData signed_data)>;
-
- // Signs |data| and calls |callback| with the signed data.
- virtual void SignData(const std::string& data,
- const SigningCallback& callback) = 0;
- };
-
- // |provider| and |service| are weak pointers and it's the caller's
+ // |service| and |signing_service| are weak pointers and it's the caller's
// responsibility to keep them valid for the lifetime of CloudPolicyClient.
// |verification_key_hash| contains an identifier telling the DMServer which
// verification key to use. The |signing_service| is used to sign sensitive
« no previous file with comments | « components/policy/core/common/BUILD.gn ('k') | components/policy/core/common/cloud/cloud_policy_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698