OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // Socket implementation. | 77 // Socket implementation. |
78 virtual int Read(IOBuffer* buf, | 78 virtual int Read(IOBuffer* buf, |
79 int buf_len, | 79 int buf_len, |
80 OldCompletionCallback* callback) OVERRIDE; | 80 OldCompletionCallback* callback) OVERRIDE; |
81 virtual int Read(IOBuffer* buf, | 81 virtual int Read(IOBuffer* buf, |
82 int buf_len, | 82 int buf_len, |
83 const CompletionCallback& callback) OVERRIDE; | 83 const CompletionCallback& callback) OVERRIDE; |
84 virtual int Write(IOBuffer* buf, | 84 virtual int Write(IOBuffer* buf, |
85 int buf_len, | 85 int buf_len, |
86 OldCompletionCallback* callback) OVERRIDE; | 86 OldCompletionCallback* callback) OVERRIDE; |
| 87 virtual int Write(IOBuffer* buf, |
| 88 int buf_len, |
| 89 const CompletionCallback& callback) OVERRIDE; |
87 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; | 90 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; |
88 virtual bool SetSendBufferSize(int32 size) OVERRIDE; | 91 virtual bool SetSendBufferSize(int32 size) OVERRIDE; |
89 virtual int GetPeerAddress(AddressList* address) const OVERRIDE; | 92 virtual int GetPeerAddress(AddressList* address) const OVERRIDE; |
90 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 93 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
91 | 94 |
92 private: | 95 private: |
93 enum State { | 96 enum State { |
94 STATE_NONE, | 97 STATE_NONE, |
95 STATE_GENERATE_AUTH_TOKEN, | 98 STATE_GENERATE_AUTH_TOKEN, |
96 STATE_GENERATE_AUTH_TOKEN_COMPLETE, | 99 STATE_GENERATE_AUTH_TOKEN_COMPLETE, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 HttpRequestHeaders request_headers_; | 160 HttpRequestHeaders request_headers_; |
158 | 161 |
159 const BoundNetLog net_log_; | 162 const BoundNetLog net_log_; |
160 | 163 |
161 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); | 164 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); |
162 }; | 165 }; |
163 | 166 |
164 } // namespace net | 167 } // namespace net |
165 | 168 |
166 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 169 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
OLD | NEW |