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

Side by Side Diff: net/socket/ssl_client_socket_openssl.h

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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/ssl_client_socket_nss.cc ('k') | net/socket/ssl_client_socket_openssl.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 (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 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
7 7
8 #include <openssl/base.h> 8 #include <openssl/base.h>
9 #include <openssl/ssl.h> 9 #include <openssl/ssl.h>
10 #include <stddef.h>
10 #include <stdint.h> 11 #include <stdint.h>
11 12
12 #include <string> 13 #include <string>
13 #include <vector> 14 #include <vector>
14 15
15 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
17 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
18 #include "build/build_config.h" 19 #include "build/build_config.h"
19 #include "net/base/completion_callback.h" 20 #include "net/base/completion_callback.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} 100 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {}
100 int64_t GetTotalReceivedBytes() const override; 101 int64_t GetTotalReceivedBytes() const override;
101 102
102 // Socket implementation. 103 // Socket implementation.
103 int Read(IOBuffer* buf, 104 int Read(IOBuffer* buf,
104 int buf_len, 105 int buf_len,
105 const CompletionCallback& callback) override; 106 const CompletionCallback& callback) override;
106 int Write(IOBuffer* buf, 107 int Write(IOBuffer* buf,
107 int buf_len, 108 int buf_len,
108 const CompletionCallback& callback) override; 109 const CompletionCallback& callback) override;
109 int SetReceiveBufferSize(int32 size) override; 110 int SetReceiveBufferSize(int32_t size) override;
110 int SetSendBufferSize(int32 size) override; 111 int SetSendBufferSize(int32_t size) override;
111 112
112 private: 113 private:
113 class PeerCertificateChain; 114 class PeerCertificateChain;
114 class SSLContext; 115 class SSLContext;
115 friend class SSLClientSocket; 116 friend class SSLClientSocket;
116 friend class SSLContext; 117 friend class SSLContext;
117 118
118 int Init(); 119 int Init();
119 void DoReadCallback(int result); 120 void DoReadCallback(int result);
120 void DoWriteCallback(int result); 121 void DoWriteCallback(int result);
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 // pinning failure. It is a (somewhat) human-readable string. 356 // pinning failure. It is a (somewhat) human-readable string.
356 std::string pinning_failure_log_; 357 std::string pinning_failure_log_;
357 358
358 BoundNetLog net_log_; 359 BoundNetLog net_log_;
359 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; 360 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_;
360 }; 361 };
361 362
362 } // namespace net 363 } // namespace net
363 364
364 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 365 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_nss.cc ('k') | net/socket/ssl_client_socket_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698