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

Side by Side Diff: net/ssl/ssl_platform_key_util.cc

Issue 2449873005: include boringssl headers from third_party explicitly (Closed)
Patch Set: review comments 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 #include "net/ssl/ssl_platform_key_util.h" 5 #include "net/ssl/ssl_platform_key_util.h"
6 6
7 #include <openssl/bytestring.h>
8 #include <openssl/ec_key.h>
9 #include <openssl/evp.h>
10
11 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
12 #include "base/logging.h" 8 #include "base/logging.h"
13 #include "base/macros.h" 9 #include "base/macros.h"
14 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
15 #include "base/threading/thread.h" 11 #include "base/threading/thread.h"
16 #include "crypto/openssl_util.h" 12 #include "crypto/openssl_util.h"
17 #include "net/cert/asn1_util.h" 13 #include "net/cert/asn1_util.h"
18 #include "net/cert/x509_certificate.h" 14 #include "net/cert/x509_certificate.h"
15 #include "third_party/boringssl/src/include/openssl/bytestring.h"
16 #include "third_party/boringssl/src/include/openssl/ec_key.h"
17 #include "third_party/boringssl/src/include/openssl/evp.h"
19 18
20 namespace net { 19 namespace net {
21 20
22 namespace { 21 namespace {
23 22
24 class SSLPlatformKeyTaskRunner { 23 class SSLPlatformKeyTaskRunner {
25 public: 24 public:
26 SSLPlatformKeyTaskRunner() : worker_thread_("Platform Key Thread") { 25 SSLPlatformKeyTaskRunner() : worker_thread_("Platform Key Thread") {
27 base::Thread::Options options; 26 base::Thread::Options options;
28 options.joinable = false; 27 options.joinable = false;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 97
99 default: 98 default:
100 return false; 99 return false;
101 } 100 }
102 101
103 *out_max_length = EVP_PKEY_size(key.get()); 102 *out_max_length = EVP_PKEY_size(key.get());
104 return true; 103 return true;
105 } 104 }
106 105
107 } // namespace net 106 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698