| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_WEBUI_PROXIMITY_AUTH_UI_DELEGATE_H_ | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_WEBUI_PROXIMITY_AUTH_UI_DELEGATE_H_ |
| 6 #define COMPONENTS_PROXIMITY_AUTH_WEBUI_PROXIMITY_AUTH_UI_DELEGATE_H_ | 6 #define COMPONENTS_PROXIMITY_AUTH_WEBUI_PROXIMITY_AUTH_UI_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "components/proximity_auth/cryptauth/proto/cryptauth_api.pb.h" | 9 #include "components/proximity_auth/cryptauth/proto/cryptauth_api.pb.h" |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // Returns the SecureMessageDelegate used by the system. | 31 // Returns the SecureMessageDelegate used by the system. |
| 32 virtual scoped_ptr<SecureMessageDelegate> CreateSecureMessageDelegate() = 0; | 32 virtual scoped_ptr<SecureMessageDelegate> CreateSecureMessageDelegate() = 0; |
| 33 | 33 |
| 34 // Constructs the CryptAuthClientFactory that can be used for API requests. | 34 // Constructs the CryptAuthClientFactory that can be used for API requests. |
| 35 virtual scoped_ptr<CryptAuthClientFactory> CreateCryptAuthClientFactory() = 0; | 35 virtual scoped_ptr<CryptAuthClientFactory> CreateCryptAuthClientFactory() = 0; |
| 36 | 36 |
| 37 // Constructs the DeviceClassifier message that is sent to CryptAuth for all | 37 // Constructs the DeviceClassifier message that is sent to CryptAuth for all |
| 38 // API requests. | 38 // API requests. |
| 39 virtual cryptauth::DeviceClassifier GetDeviceClassifier() = 0; | 39 virtual cryptauth::DeviceClassifier GetDeviceClassifier() = 0; |
| 40 | 40 |
| 41 // Returns the account id of the user. |
| 42 virtual std::string GetAccountId() = 0; |
| 43 |
| 41 // Returns the GCMDriver instance used by Chrome. | 44 // Returns the GCMDriver instance used by Chrome. |
| 42 virtual gcm::GCMDriver* GetGCMDriver() = 0; | 45 virtual gcm::GCMDriver* GetGCMDriver() = 0; |
| 43 }; | 46 }; |
| 44 | 47 |
| 45 } // namespace proximity_auth | 48 } // namespace proximity_auth |
| 46 | 49 |
| 47 #endif // COMPONENTS_PROXIMITY_AUTH_WEBUI_PROXIMITY_AUTH_UI_DELEGATE_H_ | 50 #endif // COMPONENTS_PROXIMITY_AUTH_WEBUI_PROXIMITY_AUTH_UI_DELEGATE_H_ |
| OLD | NEW |