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

Side by Side Diff: jingle/glue/fake_ssl_client_socket.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 // This StreamSocket implementation is to be used with servers that 5 // This StreamSocket implementation is to be used with servers that
6 // accept connections on port 443 but don't really use SSL. For 6 // accept connections on port 443 but don't really use SSL. For
7 // example, the Google Talk servers do this to bypass proxies. (The 7 // example, the Google Talk servers do this to bypass proxies. (The
8 // connection is upgraded to TLS as part of the XMPP negotiation, so 8 // connection is upgraded to TLS as part of the XMPP negotiation, so
9 // security is preserved.) A "fake" SSL handshake is done immediately 9 // security is preserved.) A "fake" SSL handshake is done immediately
10 // after connection to fool proxies into thinking that this is a real 10 // after connection to fool proxies into thinking that this is a real
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // net::StreamSocket implementation. 49 // net::StreamSocket implementation.
50 int Read(net::IOBuffer* buf, 50 int Read(net::IOBuffer* buf,
51 int buf_len, 51 int buf_len,
52 const net::CompletionCallback& callback) override; 52 const net::CompletionCallback& callback) override;
53 int Write(net::IOBuffer* buf, 53 int Write(net::IOBuffer* buf,
54 int buf_len, 54 int buf_len,
55 const net::CompletionCallback& callback) override; 55 const net::CompletionCallback& callback) override;
56 int SetReceiveBufferSize(int32_t size) override; 56 int SetReceiveBufferSize(int32_t size) override;
57 int SetSendBufferSize(int32_t size) override; 57 int SetSendBufferSize(int32_t size) override;
58 int SetDoNotFragment(bool do_not_fragment) override;
58 int Connect(const net::CompletionCallback& callback) override; 59 int Connect(const net::CompletionCallback& callback) override;
59 void Disconnect() override; 60 void Disconnect() override;
60 bool IsConnected() const override; 61 bool IsConnected() const override;
61 bool IsConnectedAndIdle() const override; 62 bool IsConnectedAndIdle() const override;
62 int GetPeerAddress(net::IPEndPoint* address) const override; 63 int GetPeerAddress(net::IPEndPoint* address) const override;
63 int GetLocalAddress(net::IPEndPoint* address) const override; 64 int GetLocalAddress(net::IPEndPoint* address) const override;
64 const net::BoundNetLog& NetLog() const override; 65 const net::BoundNetLog& NetLog() const override;
65 void SetSubresourceSpeculation() override; 66 void SetSubresourceSpeculation() override;
66 void SetOmniboxSpeculation() override; 67 void SetOmniboxSpeculation() override;
67 bool WasEverUsed() const override; 68 bool WasEverUsed() const override;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // The callback passed to Connect(). 111 // The callback passed to Connect().
111 net::CompletionCallback user_connect_callback_; 112 net::CompletionCallback user_connect_callback_;
112 113
113 scoped_refptr<net::DrainableIOBuffer> write_buf_; 114 scoped_refptr<net::DrainableIOBuffer> write_buf_;
114 scoped_refptr<net::DrainableIOBuffer> read_buf_; 115 scoped_refptr<net::DrainableIOBuffer> read_buf_;
115 }; 116 };
116 117
117 } // namespace jingle_glue 118 } // namespace jingle_glue
118 119
119 #endif // JINGLE_GLUE_FAKE_SSL_CLIENT_SOCKET_H_ 120 #endif // JINGLE_GLUE_FAKE_SSL_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698