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

Side by Side Diff: chrome/browser/chromeos/login/easy_unlock/secure_message_delegate_chromeos.h

Issue 2502343003: Moved //components/proximity_auth/cryptauth to //components/cryptauth. (Closed)
Patch Set: Fixed proto #includes. Created 4 years, 1 month 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 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 CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_SECURE_MESSAGE_DELEGATE_CHROME OS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_SECURE_MESSAGE_DELEGATE_CHROME OS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_SECURE_MESSAGE_DELEGATE_CHROME OS_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_SECURE_MESSAGE_DELEGATE_CHROME OS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/proximity_auth/cryptauth/secure_message_delegate.h" 9 #include "components/cryptauth/secure_message_delegate.h"
10 10
11 namespace chromeos { 11 namespace chromeos {
12 12
13 class EasyUnlockClient; 13 class EasyUnlockClient;
14 14
15 // SecureMessageDelegate implementation for ChromeOS. 15 // SecureMessageDelegate implementation for ChromeOS.
16 class SecureMessageDelegateChromeOS 16 class SecureMessageDelegateChromeOS : public cryptauth::SecureMessageDelegate {
17 : public proximity_auth::SecureMessageDelegate {
18 public: 17 public:
19 SecureMessageDelegateChromeOS(); 18 SecureMessageDelegateChromeOS();
20 ~SecureMessageDelegateChromeOS() override; 19 ~SecureMessageDelegateChromeOS() override;
21 20
22 // SecureMessageDelegate: 21 // SecureMessageDelegate:
23 void GenerateKeyPair(const GenerateKeyPairCallback& callback) override; 22 void GenerateKeyPair(const GenerateKeyPairCallback& callback) override;
24 void DeriveKey(const std::string& private_key, 23 void DeriveKey(const std::string& private_key,
25 const std::string& public_key, 24 const std::string& public_key,
26 const DeriveKeyCallback& callback) override; 25 const DeriveKeyCallback& callback) override;
27 void CreateSecureMessage( 26 void CreateSecureMessage(
28 const std::string& payload, 27 const std::string& payload,
29 const std::string& key, 28 const std::string& key,
30 const CreateOptions& create_options, 29 const CreateOptions& create_options,
31 const CreateSecureMessageCallback& callback) override; 30 const CreateSecureMessageCallback& callback) override;
32 void UnwrapSecureMessage( 31 void UnwrapSecureMessage(
33 const std::string& serialized_message, 32 const std::string& serialized_message,
34 const std::string& key, 33 const std::string& key,
35 const UnwrapOptions& unwrap_options, 34 const UnwrapOptions& unwrap_options,
36 const UnwrapSecureMessageCallback& callback) override; 35 const UnwrapSecureMessageCallback& callback) override;
37 36
38 private: 37 private:
39 chromeos::EasyUnlockClient* dbus_client_; 38 chromeos::EasyUnlockClient* dbus_client_;
40 39
41 DISALLOW_COPY_AND_ASSIGN(SecureMessageDelegateChromeOS); 40 DISALLOW_COPY_AND_ASSIGN(SecureMessageDelegateChromeOS);
42 }; 41 };
43 42
44 } // namespace chromeos 43 } // namespace chromeos
45 44
46 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_SECURE_MESSAGE_DELEGATE_CHR OMEOS_H_ 45 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_SECURE_MESSAGE_DELEGATE_CHR OMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698