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

Side by Side Diff: net/socket/ssl_server_socket_nss.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_server_socket.h ('k') | net/socket/ssl_server_socket_nss.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_SERVER_SOCKET_NSS_H_ 5 #ifndef NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_
6 #define NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ 6 #define NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_
7 7
8 #include <certt.h> 8 #include <certt.h>
9 #include <keyt.h> 9 #include <keyt.h>
10 #include <nspr.h> 10 #include <nspr.h>
11 #include <nss.h> 11 #include <nss.h>
12 #include <stdint.h> 12 #include <stdint.h>
13 13
14 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
15 #include "net/base/completion_callback.h" 16 #include "net/base/completion_callback.h"
16 #include "net/base/host_port_pair.h" 17 #include "net/base/host_port_pair.h"
17 #include "net/base/nss_memio.h" 18 #include "net/base/nss_memio.h"
18 #include "net/log/net_log.h" 19 #include "net/log/net_log.h"
19 #include "net/socket/ssl_server_socket.h" 20 #include "net/socket/ssl_server_socket.h"
20 #include "net/ssl/ssl_server_config.h" 21 #include "net/ssl/ssl_server_config.h"
21 22
22 namespace net { 23 namespace net {
23 24
(...skipping 18 matching lines...) Expand all
42 unsigned int outlen) override; 43 unsigned int outlen) override;
43 int GetTLSUniqueChannelBinding(std::string* out) override; 44 int GetTLSUniqueChannelBinding(std::string* out) override;
44 45
45 // Socket interface (via StreamSocket). 46 // Socket interface (via StreamSocket).
46 int Read(IOBuffer* buf, 47 int Read(IOBuffer* buf,
47 int buf_len, 48 int buf_len,
48 const CompletionCallback& callback) override; 49 const CompletionCallback& callback) override;
49 int Write(IOBuffer* buf, 50 int Write(IOBuffer* buf,
50 int buf_len, 51 int buf_len,
51 const CompletionCallback& callback) override; 52 const CompletionCallback& callback) override;
52 int SetReceiveBufferSize(int32 size) override; 53 int SetReceiveBufferSize(int32_t size) override;
53 int SetSendBufferSize(int32 size) override; 54 int SetSendBufferSize(int32_t size) override;
54 55
55 // StreamSocket implementation. 56 // StreamSocket implementation.
56 int Connect(const CompletionCallback& callback) override; 57 int Connect(const CompletionCallback& callback) override;
57 void Disconnect() override; 58 void Disconnect() override;
58 bool IsConnected() const override; 59 bool IsConnected() const override;
59 bool IsConnectedAndIdle() const override; 60 bool IsConnectedAndIdle() const override;
60 int GetPeerAddress(IPEndPoint* address) const override; 61 int GetPeerAddress(IPEndPoint* address) const override;
61 int GetLocalAddress(IPEndPoint* address) const override; 62 int GetLocalAddress(IPEndPoint* address) const override;
62 const BoundNetLog& NetLog() const override; 63 const BoundNetLog& NetLog() const override;
63 void SetSubresourceSpeculation() override; 64 void SetSubresourceSpeculation() override;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 149
149 State next_handshake_state_; 150 State next_handshake_state_;
150 bool completed_handshake_; 151 bool completed_handshake_;
151 152
152 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS); 153 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS);
153 }; 154 };
154 155
155 } // namespace net 156 } // namespace net
156 157
157 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ 158 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_server_socket.h ('k') | net/socket/ssl_server_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698