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; | |
33 std::string signed_data; | 32 std::string signed_data; |
34 std::string unsigned_data; | 33 std::string unsigned_data; |
35 std::string device_bssid; | 34 std::string device_bssid; |
36 std::string public_key; | 35 std::string public_key; |
37 }; | 36 }; |
38 | 37 |
39 // NetworkingPrivateDelegate::VerifyDelegate | 38 // NetworkingPrivateDelegate::VerifyDelegate |
40 void VerifyDestination(const VerificationProperties& verification_properties, | 39 void VerifyDestination(const VerificationProperties& verification_properties, |
41 const BoolCallback& success_callback, | 40 const BoolCallback& success_callback, |
42 const FailureCallback& failure_callback) override; | 41 const FailureCallback& failure_callback) override; |
(...skipping 11 matching lines...) Expand all Loading... |
54 private: | 53 private: |
55 // Task runner for blocking tasks. | 54 // Task runner for blocking tasks. |
56 scoped_refptr<base::SequencedTaskRunner> blocking_pool_task_runner_; | 55 scoped_refptr<base::SequencedTaskRunner> blocking_pool_task_runner_; |
57 | 56 |
58 DISALLOW_COPY_AND_ASSIGN(CryptoVerifyImpl); | 57 DISALLOW_COPY_AND_ASSIGN(CryptoVerifyImpl); |
59 }; | 58 }; |
60 | 59 |
61 } // namespace extensions | 60 } // namespace extensions |
62 | 61 |
63 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_CRYPTO_VERIFY_IMPL_H
_ | 62 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_CRYPTO_VERIFY_IMPL_H
_ |
OLD | NEW |