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

Side by Side Diff: net/spdy/spdy_proxy_client_socket.h

Issue 8568021: Add OVERRIDE to net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net only Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_http_stream.h ('k') | net/spdy/spdy_session.h » ('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) 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_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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <list> 10 #include <list>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 52
53 // On destruction Disconnect() is called. 53 // On destruction Disconnect() is called.
54 virtual ~SpdyProxyClientSocket(); 54 virtual ~SpdyProxyClientSocket();
55 55
56 const scoped_refptr<HttpAuthController>& auth_controller() { 56 const scoped_refptr<HttpAuthController>& auth_controller() {
57 return auth_; 57 return auth_;
58 } 58 }
59 59
60 // ProxyClientSocket methods: 60 // ProxyClientSocket methods:
61 virtual const HttpResponseInfo* GetConnectResponseInfo() const; 61 virtual const HttpResponseInfo* GetConnectResponseInfo() const OVERRIDE;
62 62
63 // In the event of a non-200 response to the CONNECT request, this 63 // In the event of a non-200 response to the CONNECT request, this
64 // method may be called to return an HttpStream in order to read 64 // method may be called to return an HttpStream in order to read
65 // the response body. 65 // the response body.
66 virtual HttpStream* CreateConnectResponseStream(); 66 virtual HttpStream* CreateConnectResponseStream() OVERRIDE;
67 67
68 // StreamSocket methods: 68 // StreamSocket methods:
69 virtual int Connect(OldCompletionCallback* callback); 69 virtual int Connect(OldCompletionCallback* callback) OVERRIDE;
70 virtual void Disconnect(); 70 virtual void Disconnect() OVERRIDE;
71 virtual bool IsConnected() const; 71 virtual bool IsConnected() const OVERRIDE;
72 virtual bool IsConnectedAndIdle() const; 72 virtual bool IsConnectedAndIdle() const OVERRIDE;
73 virtual const BoundNetLog& NetLog() const; 73 virtual const BoundNetLog& NetLog() const OVERRIDE;
74 virtual void SetSubresourceSpeculation(); 74 virtual void SetSubresourceSpeculation() OVERRIDE;
75 virtual void SetOmniboxSpeculation(); 75 virtual void SetOmniboxSpeculation() OVERRIDE;
76 virtual bool WasEverUsed() const; 76 virtual bool WasEverUsed() const OVERRIDE;
77 virtual bool UsingTCPFastOpen() const; 77 virtual bool UsingTCPFastOpen() const OVERRIDE;
78 virtual int64 NumBytesRead() const; 78 virtual int64 NumBytesRead() const OVERRIDE;
79 virtual base::TimeDelta GetConnectTimeMicros() const; 79 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
80 80
81 // Socket methods: 81 // Socket methods:
82 virtual int Read(IOBuffer* buf, int buf_len, OldCompletionCallback* callback); 82 virtual int Read(IOBuffer* buf,
83 int buf_len,
84 OldCompletionCallback* callback) OVERRIDE;
83 virtual int Write(IOBuffer* buf, 85 virtual int Write(IOBuffer* buf,
84 int buf_len, 86 int buf_len,
85 OldCompletionCallback* callback); 87 OldCompletionCallback* callback) OVERRIDE;
86 virtual bool SetReceiveBufferSize(int32 size); 88 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
87 virtual bool SetSendBufferSize(int32 size); 89 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
88 virtual int GetPeerAddress(AddressList* address) const; 90 virtual int GetPeerAddress(AddressList* address) const OVERRIDE;
89 virtual int GetLocalAddress(IPEndPoint* address) const; 91 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
90 92
91 // SpdyStream::Delegate methods: 93 // SpdyStream::Delegate methods:
92 virtual bool OnSendHeadersComplete(int status); 94 virtual bool OnSendHeadersComplete(int status) OVERRIDE;
93 virtual int OnSendBody(); 95 virtual int OnSendBody() OVERRIDE;
94 virtual int OnSendBodyComplete(int status, bool* eof); 96 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE;
95 virtual int OnResponseReceived(const spdy::SpdyHeaderBlock& response, 97 virtual int OnResponseReceived(const spdy::SpdyHeaderBlock& response,
96 base::Time response_time, 98 base::Time response_time,
97 int status); 99 int status) OVERRIDE;
98 virtual void OnDataReceived(const char* data, int length); 100 virtual void OnDataReceived(const char* data, int length) OVERRIDE;
99 virtual void OnDataSent(int length); 101 virtual void OnDataSent(int length) OVERRIDE;
100 virtual void OnClose(int status); 102 virtual void OnClose(int status) OVERRIDE;
101 virtual void set_chunk_callback(ChunkCallback* /*callback*/); 103 virtual void set_chunk_callback(ChunkCallback* /*callback*/) OVERRIDE;
102 104
103 private: 105 private:
104 enum State { 106 enum State {
105 STATE_DISCONNECTED, 107 STATE_DISCONNECTED,
106 STATE_GENERATE_AUTH_TOKEN, 108 STATE_GENERATE_AUTH_TOKEN,
107 STATE_GENERATE_AUTH_TOKEN_COMPLETE, 109 STATE_GENERATE_AUTH_TOKEN_COMPLETE,
108 STATE_SEND_REQUEST, 110 STATE_SEND_REQUEST,
109 STATE_SEND_REQUEST_COMPLETE, 111 STATE_SEND_REQUEST_COMPLETE,
110 STATE_READ_REPLY_COMPLETE, 112 STATE_READ_REPLY_COMPLETE,
111 STATE_OPEN, 113 STATE_OPEN,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 scoped_ptr<SpdyHttpStream> response_stream_; 167 scoped_ptr<SpdyHttpStream> response_stream_;
166 168
167 const BoundNetLog net_log_; 169 const BoundNetLog net_log_;
168 170
169 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); 171 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket);
170 }; 172 };
171 173
172 } // namespace net 174 } // namespace net
173 175
174 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 176 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_http_stream.h ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698