OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_CRYPTO_VERIFY_IMPL_H_ | |
6 #define CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_CRYPTO_VERIFY_IMPL_H_ | |
7 | |
8 #include "chrome/browser/extensions/api/networking_private/networking_private_se rvice_client.h" | |
pneubeck (no reviews)
2014/08/06 16:01:38
#include "base/compiler_specific.h
#include "base/
stevenjb
2014/08/06 16:52:14
Done.
| |
9 | |
10 // Implementation of NetworkingPrivateServiceClient::CryptoVerify using | |
11 // networking_private_crypto. | |
12 class CryptoVerifyImpl | |
13 : public extensions::NetworkingPrivateServiceClient::CryptoVerify { | |
14 public: | |
15 CryptoVerifyImpl(); | |
16 virtual ~CryptoVerifyImpl(); | |
17 | |
18 // NetworkingPrivateServiceClient::CryptoVerify | |
19 virtual void VerifyDestination(const Credentials& credentials, | |
20 bool* verified, | |
21 std::string* error) OVERRIDE; | |
22 virtual void VerifyAndEncryptCredentials( | |
23 const std::string& network_guid, | |
24 const Credentials& credentials, | |
25 const VerifyAndEncryptCredentialsCallback& callback) OVERRIDE; | |
26 virtual void VerifyAndEncryptData(const Credentials& credentials, | |
27 const std::string& data, | |
28 std::string* base64_encoded_ciphertext, | |
29 std::string* error) OVERRIDE; | |
30 | |
31 private: | |
32 DISALLOW_COPY_AND_ASSIGN(CryptoVerifyImpl); | |
33 }; | |
34 | |
35 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_CRYPTO_VERIFY_IMPL_H _ | |
OLD | NEW |