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

Side by Side Diff: net/spdy/spdy_proxy_client_socket.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/spdy/spdy_protocol_test.cc ('k') | net/spdy/spdy_proxy_client_socket.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_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 <stdint.h> 9 #include <stdint.h>
9 10
10 #include <list> 11 #include <list>
11 #include <string> 12 #include <string>
12 13
13 #include "base/basictypes.h" 14 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
15 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
16 #include "net/base/completion_callback.h" 17 #include "net/base/completion_callback.h"
17 #include "net/base/host_port_pair.h" 18 #include "net/base/host_port_pair.h"
18 #include "net/base/load_timing_info.h" 19 #include "net/base/load_timing_info.h"
19 #include "net/http/http_auth_controller.h" 20 #include "net/http/http_auth_controller.h"
20 #include "net/http/http_request_headers.h" 21 #include "net/http/http_request_headers.h"
21 #include "net/http/http_request_info.h" 22 #include "net/http/http_request_info.h"
22 #include "net/http/http_response_info.h" 23 #include "net/http/http_response_info.h"
23 #include "net/http/proxy_client_socket.h" 24 #include "net/http/proxy_client_socket.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} 79 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {}
79 int64_t GetTotalReceivedBytes() const override; 80 int64_t GetTotalReceivedBytes() const override;
80 81
81 // Socket implementation. 82 // Socket implementation.
82 int Read(IOBuffer* buf, 83 int Read(IOBuffer* buf,
83 int buf_len, 84 int buf_len,
84 const CompletionCallback& callback) override; 85 const CompletionCallback& callback) override;
85 int Write(IOBuffer* buf, 86 int Write(IOBuffer* buf,
86 int buf_len, 87 int buf_len,
87 const CompletionCallback& callback) override; 88 const CompletionCallback& callback) override;
88 int SetReceiveBufferSize(int32 size) override; 89 int SetReceiveBufferSize(int32_t size) override;
89 int SetSendBufferSize(int32 size) override; 90 int SetSendBufferSize(int32_t size) 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(scoped_ptr<SpdyBuffer> buffer) override; 98 void OnDataReceived(scoped_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
« no previous file with comments | « net/spdy/spdy_protocol_test.cc ('k') | net/spdy/spdy_proxy_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698