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

Side by Side Diff: net/spdy/spdy_proxy_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 #ifndef NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 5 #ifndef NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 // Socket implementation. 81 // Socket implementation.
82 int Read(IOBuffer* buf, 82 int Read(IOBuffer* buf,
83 int buf_len, 83 int buf_len,
84 const CompletionCallback& callback) override; 84 const CompletionCallback& callback) override;
85 int Write(IOBuffer* buf, 85 int Write(IOBuffer* buf,
86 int buf_len, 86 int buf_len,
87 const CompletionCallback& callback) override; 87 const CompletionCallback& callback) override;
88 int SetReceiveBufferSize(int32_t size) override; 88 int SetReceiveBufferSize(int32_t size) override;
89 int SetSendBufferSize(int32_t size) override; 89 int SetSendBufferSize(int32_t size) override;
90 int SetDoNotFragment(bool do_not_fragment) override;
90 int GetPeerAddress(IPEndPoint* address) const override; 91 int GetPeerAddress(IPEndPoint* address) const override;
91 int GetLocalAddress(IPEndPoint* address) const override; 92 int GetLocalAddress(IPEndPoint* address) const override;
92 93
93 // SpdyStream::Delegate implementation. 94 // SpdyStream::Delegate implementation.
94 void OnRequestHeadersSent() override; 95 void OnRequestHeadersSent() override;
95 SpdyResponseHeadersStatus OnResponseHeadersUpdated( 96 SpdyResponseHeadersStatus OnResponseHeadersUpdated(
96 const SpdyHeaderBlock& response_headers) override; 97 const SpdyHeaderBlock& response_headers) override;
97 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override; 98 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override;
98 void OnDataSent() override; 99 void OnDataSent() override;
99 void OnTrailers(const SpdyHeaderBlock& trailers) override; 100 void OnTrailers(const SpdyHeaderBlock& trailers) override;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // Only used for posting write callbacks. Weak pointers created by this 178 // Only used for posting write callbacks. Weak pointers created by this
178 // factory are invalidated in Disconnect(). 179 // factory are invalidated in Disconnect().
179 base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_; 180 base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_;
180 181
181 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); 182 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket);
182 }; 183 };
183 184
184 } // namespace net 185 } // namespace net
185 186
186 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 187 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698