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

Side by Side Diff: components/cryptauth/cryptauth_client.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_CLIENT_H 5 #ifndef COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_CLIENT_H
6 #define COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_CLIENT_H 6 #define COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_CLIENT_H
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 13
14 namespace cryptauth { 14 namespace cryptauth {
15 class DeviceClassifier;
16 class GetMyDevicesRequest; 15 class GetMyDevicesRequest;
17 class GetMyDevicesResponse; 16 class GetMyDevicesResponse;
18 class FindEligibleUnlockDevicesRequest; 17 class FindEligibleUnlockDevicesRequest;
19 class FindEligibleUnlockDevicesResponse; 18 class FindEligibleUnlockDevicesResponse;
20 class SendDeviceSyncTickleRequest; 19 class SendDeviceSyncTickleRequest;
21 class SendDeviceSyncTickleResponse; 20 class SendDeviceSyncTickleResponse;
22 class ToggleEasyUnlockRequest; 21 class ToggleEasyUnlockRequest;
23 class ToggleEasyUnlockResponse; 22 class ToggleEasyUnlockResponse;
24 class SetupEnrollmentRequest; 23 class SetupEnrollmentRequest;
25 class SetupEnrollmentResponse; 24 class SetupEnrollmentResponse;
26 class FinishEnrollmentRequest; 25 class FinishEnrollmentRequest;
27 class FinishEnrollmentResponse; 26 class FinishEnrollmentResponse;
28 } 27 }
29 28
30 namespace net {
31 class URLRequestContextGetter;
32 }
33
34 namespace cryptauth { 29 namespace cryptauth {
35 30
36 class CryptAuthAccessTokenFetcher;
37 class CryptAuthApiCallFlow;
38
39 // Interface for making API requests to the CryptAuth service, which 31 // Interface for making API requests to the CryptAuth service, which
40 // manages cryptographic credentials (ie. public keys) for a user's devices. 32 // manages cryptographic credentials (ie. public keys) for a user's devices.
41 // Implmentations shall only processes a single request, so create a new 33 // Implmentations shall only processes a single request, so create a new
42 // instance for each request you make. DO NOT REUSE. 34 // instance for each request you make. DO NOT REUSE.
43 // For documentation on each API call, see 35 // For documentation on each API call, see
44 // components/cryptauth/proto/cryptauth_api.proto 36 // components/cryptauth/proto/cryptauth_api.proto
45 class CryptAuthClient { 37 class CryptAuthClient {
46 public: 38 public:
47 typedef base::Callback<void(const std::string&)> ErrorCallback; 39 typedef base::Callback<void(const std::string&)> ErrorCallback;
48 40
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 class CryptAuthClientFactory { 98 class CryptAuthClientFactory {
107 public: 99 public:
108 virtual ~CryptAuthClientFactory() {} 100 virtual ~CryptAuthClientFactory() {}
109 101
110 virtual std::unique_ptr<CryptAuthClient> CreateInstance() = 0; 102 virtual std::unique_ptr<CryptAuthClient> CreateInstance() = 0;
111 }; 103 };
112 104
113 } // namespace cryptauth 105 } // namespace cryptauth
114 106
115 #endif // COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_CLIENT_H 107 #endif // COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_CLIENT_H
OLDNEW
« no previous file with comments | « components/cronet/ios/cronet_environment.h ('k') | components/cryptauth/cryptauth_enroller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698