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

Side by Side Diff: net/socket/ssl_client_socket.cc

Issue 1921563003: Renaming _openssl files to _impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits. Created 4 years, 7 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 | « net/socket/client_socket_factory.cc ('k') | net/socket/ssl_client_socket_impl.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/socket/ssl_client_socket.h" 5 #include "net/socket/ssl_client_socket.h"
6 6
7 #include "base/metrics/histogram_macros.h" 7 #include "base/metrics/histogram_macros.h"
8 #include "base/metrics/sparse_histogram.h" 8 #include "base/metrics/sparse_histogram.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "crypto/ec_private_key.h" 10 #include "crypto/ec_private_key.h"
11 #include "net/base/connection_type_histograms.h" 11 #include "net/base/connection_type_histograms.h"
12 #include "net/base/net_errors.h" 12 #include "net/base/net_errors.h"
13 #include "net/socket/ssl_client_socket_openssl.h" 13 #include "net/socket/ssl_client_socket_impl.h"
14 #include "net/ssl/channel_id_service.h" 14 #include "net/ssl/channel_id_service.h"
15 #include "net/ssl/ssl_cipher_suite_names.h" 15 #include "net/ssl/ssl_cipher_suite_names.h"
16 #include "net/ssl/ssl_config_service.h" 16 #include "net/ssl/ssl_config_service.h"
17 #include "net/ssl/ssl_connection_status_flags.h" 17 #include "net/ssl/ssl_connection_status_flags.h"
18 18
19 19
20 namespace net { 20 namespace net {
21 21
22 SSLClientSocket::SSLClientSocket() 22 SSLClientSocket::SSLClientSocket()
23 : signed_cert_timestamps_received_(false), 23 : signed_cert_timestamps_received_(false),
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 return "no-overlap"; 70 return "no-overlap";
71 } 71 }
72 return NULL; 72 return NULL;
73 } 73 }
74 74
75 // static 75 // static
76 void SSLClientSocket::SetSSLKeyLogFile( 76 void SSLClientSocket::SetSSLKeyLogFile(
77 const base::FilePath& path, 77 const base::FilePath& path,
78 const scoped_refptr<base::SequencedTaskRunner>& task_runner) { 78 const scoped_refptr<base::SequencedTaskRunner>& task_runner) {
79 #if !defined(OS_NACL) 79 #if !defined(OS_NACL)
80 SSLClientSocketOpenSSL::SetSSLKeyLogFile(path, task_runner); 80 SSLClientSocketImpl::SetSSLKeyLogFile(path, task_runner);
81 #else 81 #else
82 NOTIMPLEMENTED(); 82 NOTIMPLEMENTED();
83 #endif 83 #endif
84 } 84 }
85 85
86 bool SSLClientSocket::WasNpnNegotiated() const { 86 bool SSLClientSocket::WasNpnNegotiated() const {
87 std::string unused_proto; 87 std::string unused_proto;
88 return GetNextProto(&unused_proto) == kNextProtoNegotiated; 88 return GetNextProto(&unused_proto) == kNextProtoNegotiated;
89 } 89 }
90 90
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 wire_protos.push_back(proto.size()); 202 wire_protos.push_back(proto.size());
203 for (const char ch : proto) { 203 for (const char ch : proto) {
204 wire_protos.push_back(static_cast<uint8_t>(ch)); 204 wire_protos.push_back(static_cast<uint8_t>(ch));
205 } 205 }
206 } 206 }
207 207
208 return wire_protos; 208 return wire_protos;
209 } 209 }
210 210
211 } // namespace net 211 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/client_socket_factory.cc ('k') | net/socket/ssl_client_socket_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698