OLD | NEW |
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_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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 bool tunnel, | 48 bool tunnel, |
49 bool using_spdy, | 49 bool using_spdy, |
50 NextProto protocol_negotiated, | 50 NextProto protocol_negotiated, |
51 ProxyDelegate* proxy_delegate, | 51 ProxyDelegate* proxy_delegate, |
52 bool is_https_proxy); | 52 bool is_https_proxy); |
53 | 53 |
54 // On destruction Disconnect() is called. | 54 // On destruction Disconnect() is called. |
55 virtual ~HttpProxyClientSocket(); | 55 virtual ~HttpProxyClientSocket(); |
56 | 56 |
57 // ProxyClientSocket implementation. | 57 // ProxyClientSocket implementation. |
58 virtual const HttpResponseInfo* GetConnectResponseInfo() const OVERRIDE; | 58 virtual const HttpResponseInfo* GetConnectResponseInfo() const override; |
59 virtual HttpStream* CreateConnectResponseStream() OVERRIDE; | 59 virtual HttpStream* CreateConnectResponseStream() override; |
60 virtual int RestartWithAuth(const CompletionCallback& callback) OVERRIDE; | 60 virtual int RestartWithAuth(const CompletionCallback& callback) override; |
61 virtual const scoped_refptr<HttpAuthController>& GetAuthController() const | 61 virtual const scoped_refptr<HttpAuthController>& GetAuthController() const |
62 OVERRIDE; | 62 override; |
63 virtual bool IsUsingSpdy() const OVERRIDE; | 63 virtual bool IsUsingSpdy() const override; |
64 virtual NextProto GetProtocolNegotiated() const OVERRIDE; | 64 virtual NextProto GetProtocolNegotiated() const override; |
65 | 65 |
66 // StreamSocket implementation. | 66 // StreamSocket implementation. |
67 virtual int Connect(const CompletionCallback& callback) OVERRIDE; | 67 virtual int Connect(const CompletionCallback& callback) override; |
68 virtual void Disconnect() OVERRIDE; | 68 virtual void Disconnect() override; |
69 virtual bool IsConnected() const OVERRIDE; | 69 virtual bool IsConnected() const override; |
70 virtual bool IsConnectedAndIdle() const OVERRIDE; | 70 virtual bool IsConnectedAndIdle() const override; |
71 virtual const BoundNetLog& NetLog() const OVERRIDE; | 71 virtual const BoundNetLog& NetLog() const override; |
72 virtual void SetSubresourceSpeculation() OVERRIDE; | 72 virtual void SetSubresourceSpeculation() override; |
73 virtual void SetOmniboxSpeculation() OVERRIDE; | 73 virtual void SetOmniboxSpeculation() override; |
74 virtual bool WasEverUsed() const OVERRIDE; | 74 virtual bool WasEverUsed() const override; |
75 virtual bool UsingTCPFastOpen() const OVERRIDE; | 75 virtual bool UsingTCPFastOpen() const override; |
76 virtual bool WasNpnNegotiated() const OVERRIDE; | 76 virtual bool WasNpnNegotiated() const override; |
77 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; | 77 virtual NextProto GetNegotiatedProtocol() const override; |
78 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; | 78 virtual bool GetSSLInfo(SSLInfo* ssl_info) override; |
79 | 79 |
80 // Socket implementation. | 80 // Socket implementation. |
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 const CompletionCallback& callback) OVERRIDE; | 86 const CompletionCallback& callback) override; |
87 virtual int SetReceiveBufferSize(int32 size) OVERRIDE; | 87 virtual int SetReceiveBufferSize(int32 size) override; |
88 virtual int SetSendBufferSize(int32 size) OVERRIDE; | 88 virtual int SetSendBufferSize(int32 size) override; |
89 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; | 89 virtual int GetPeerAddress(IPEndPoint* address) const override; |
90 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 90 virtual int GetLocalAddress(IPEndPoint* address) const override; |
91 | 91 |
92 private: | 92 private: |
93 enum State { | 93 enum State { |
94 STATE_NONE, | 94 STATE_NONE, |
95 STATE_GENERATE_AUTH_TOKEN, | 95 STATE_GENERATE_AUTH_TOKEN, |
96 STATE_GENERATE_AUTH_TOKEN_COMPLETE, | 96 STATE_GENERATE_AUTH_TOKEN_COMPLETE, |
97 STATE_SEND_REQUEST, | 97 STATE_SEND_REQUEST, |
98 STATE_SEND_REQUEST_COMPLETE, | 98 STATE_SEND_REQUEST_COMPLETE, |
99 STATE_READ_HEADERS, | 99 STATE_READ_HEADERS, |
100 STATE_READ_HEADERS_COMPLETE, | 100 STATE_READ_HEADERS_COMPLETE, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 ProxyDelegate* proxy_delegate_; | 171 ProxyDelegate* proxy_delegate_; |
172 | 172 |
173 const BoundNetLog net_log_; | 173 const BoundNetLog net_log_; |
174 | 174 |
175 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); | 175 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); |
176 }; | 176 }; |
177 | 177 |
178 } // namespace net | 178 } // namespace net |
179 | 179 |
180 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 180 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
OLD | NEW |