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

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

Issue 1378613004: Set Token-Binding HTTP header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tb-tls-ext-new
Patch Set: fix build issues Created 4 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
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_NSS_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 6 #define NET_SOCKET_SSL_CLIENT_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>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 int buf_len, 92 int buf_len,
93 const CompletionCallback& callback) override; 93 const CompletionCallback& callback) override;
94 int Write(IOBuffer* buf, 94 int Write(IOBuffer* buf,
95 int buf_len, 95 int buf_len,
96 const CompletionCallback& callback) override; 96 const CompletionCallback& callback) override;
97 int SetReceiveBufferSize(int32_t size) override; 97 int SetReceiveBufferSize(int32_t size) override;
98 int SetSendBufferSize(int32_t size) override; 98 int SetSendBufferSize(int32_t size) override;
99 99
100 // SSLClientSocket implementation. 100 // SSLClientSocket implementation.
101 ChannelIDService* GetChannelIDService() const override; 101 ChannelIDService* GetChannelIDService() const override;
102 int GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key,
103 std::vector<uint8_t>* out) override;
102 SSLFailureState GetSSLFailureState() const override; 104 SSLFailureState GetSSLFailureState() const override;
103 105
104 private: 106 private:
105 // Helper class to handle marshalling any NSS interaction to and from the 107 // Helper class to handle marshalling any NSS interaction to and from the
106 // NSS and network task runners. Not every call needs to happen on the Core 108 // NSS and network task runners. Not every call needs to happen on the Core
107 class Core; 109 class Core;
108 110
109 enum State { 111 enum State {
110 STATE_NONE, 112 STATE_NONE,
111 STATE_HANDSHAKE, 113 STATE_HANDSHAKE,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // Added the following code Debugging in release mode. 210 // Added the following code Debugging in release mode.
209 mutable base::Lock lock_; 211 mutable base::Lock lock_;
210 // This is mutable so that CalledOnValidThread can set it. 212 // This is mutable so that CalledOnValidThread can set it.
211 // It's guarded by |lock_|. 213 // It's guarded by |lock_|.
212 mutable base::PlatformThreadId valid_thread_id_; 214 mutable base::PlatformThreadId valid_thread_id_;
213 }; 215 };
214 216
215 } // namespace net 217 } // namespace net
216 218
217 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 219 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698