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

Side by Side Diff: chrome/browser/extensions/api/networking_private/crypto_verify_impl.h

Issue 853663003: Revert of Refactoring of Cast-related crypto code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/networking_private/crypto_verify_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/networking_private/crypto_verify_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698