OLD | NEW |
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 CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_CRYPTO_VERIFY_IMPL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_CRYPTO_VERIFY_IMPL_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_CRYPTO_VERIFY_IMPL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_CRYPTO_VERIFY_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "chrome/browser/extensions/api/networking_private/networking_private_de
legate.h" | 10 #include "chrome/browser/extensions/api/networking_private/networking_private_de
legate.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 CryptoVerifyImpl(); | 22 CryptoVerifyImpl(); |
23 ~CryptoVerifyImpl() override; | 23 ~CryptoVerifyImpl() override; |
24 | 24 |
25 struct Credentials { | 25 struct Credentials { |
26 // VerificationProperties are not copyable so define a struct that can be | 26 // VerificationProperties are not copyable so define a struct that can be |
27 // passed to tasks on the worker thread. | 27 // passed to tasks on the worker thread. |
28 explicit Credentials(const VerificationProperties& properties); | 28 explicit Credentials(const VerificationProperties& properties); |
29 ~Credentials(); | 29 ~Credentials(); |
30 | 30 |
31 std::string certificate; | 31 std::string certificate; |
| 32 std::vector<std::string> intermediate_certificates; |
32 std::string signed_data; | 33 std::string signed_data; |
33 std::string unsigned_data; | 34 std::string unsigned_data; |
34 std::string device_bssid; | 35 std::string device_bssid; |
35 std::string public_key; | 36 std::string public_key; |
36 }; | 37 }; |
37 | 38 |
38 // NetworkingPrivateDelegate::VerifyDelegate | 39 // NetworkingPrivateDelegate::VerifyDelegate |
39 void VerifyDestination(const VerificationProperties& verification_properties, | 40 void VerifyDestination(const VerificationProperties& verification_properties, |
40 const BoolCallback& success_callback, | 41 const BoolCallback& success_callback, |
41 const FailureCallback& failure_callback) override; | 42 const FailureCallback& failure_callback) override; |
(...skipping 11 matching lines...) Expand all Loading... |
53 private: | 54 private: |
54 // Task runner for blocking tasks. | 55 // Task runner for blocking tasks. |
55 scoped_refptr<base::SequencedTaskRunner> blocking_pool_task_runner_; | 56 scoped_refptr<base::SequencedTaskRunner> blocking_pool_task_runner_; |
56 | 57 |
57 DISALLOW_COPY_AND_ASSIGN(CryptoVerifyImpl); | 58 DISALLOW_COPY_AND_ASSIGN(CryptoVerifyImpl); |
58 }; | 59 }; |
59 | 60 |
60 } // namespace extensions | 61 } // namespace extensions |
61 | 62 |
62 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_CRYPTO_VERIFY_IMPL_H
_ | 63 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_CRYPTO_VERIFY_IMPL_H
_ |
OLD | NEW |