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

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

Issue 2235973002: Add a SetDoNotFragment() method to DatagramSocket, and call this for (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Blimp Created 4 years, 4 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_IMPL_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_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 <stddef.h>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // Socket implementation. 106 // Socket implementation.
107 int Read(IOBuffer* buf, 107 int Read(IOBuffer* buf,
108 int buf_len, 108 int buf_len,
109 const CompletionCallback& callback) override; 109 const CompletionCallback& callback) override;
110 int Write(IOBuffer* buf, 110 int Write(IOBuffer* buf,
111 int buf_len, 111 int buf_len,
112 const CompletionCallback& callback) override; 112 const CompletionCallback& callback) override;
113 int SetReceiveBufferSize(int32_t size) override; 113 int SetReceiveBufferSize(int32_t size) override;
114 int SetSendBufferSize(int32_t size) override; 114 int SetSendBufferSize(int32_t size) override;
115 int SetDoNotFragment(bool do_not_fragment) override;
115 116
116 private: 117 private:
117 class PeerCertificateChain; 118 class PeerCertificateChain;
118 class SSLContext; 119 class SSLContext;
119 friend class SSLClientSocket; 120 friend class SSLClientSocket;
120 friend class SSLContext; 121 friend class SSLContext;
121 122
122 int Init(); 123 int Init();
123 void DoReadCallback(int result); 124 void DoReadCallback(int result);
124 void DoWriteCallback(int result); 125 void DoWriteCallback(int result);
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 // True if PKP is bypassed due to a local trust anchor. 371 // True if PKP is bypassed due to a local trust anchor.
371 bool pkp_bypassed_; 372 bool pkp_bypassed_;
372 373
373 BoundNetLog net_log_; 374 BoundNetLog net_log_;
374 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_; 375 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_;
375 }; 376 };
376 377
377 } // namespace net 378 } // namespace net
378 379
379 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ 380 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698