| 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_WEBSOCKETS_WEBSOCKET_JOB_H_ | 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_JOB_H_ |
| 6 #define NET_WEBSOCKETS_WEBSOCKET_JOB_H_ | 6 #define NET_WEBSOCKETS_WEBSOCKET_JOB_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual void OnAuthRequired( | 73 virtual void OnAuthRequired( |
| 74 SocketStream* socket, AuthChallengeInfo* auth_info) OVERRIDE; | 74 SocketStream* socket, AuthChallengeInfo* auth_info) OVERRIDE; |
| 75 virtual void OnSSLCertificateError(SocketStream* socket, | 75 virtual void OnSSLCertificateError(SocketStream* socket, |
| 76 const SSLInfo& ssl_info, | 76 const SSLInfo& ssl_info, |
| 77 bool fatal) OVERRIDE; | 77 bool fatal) OVERRIDE; |
| 78 virtual void OnError(const SocketStream* socket, int error) OVERRIDE; | 78 virtual void OnError(const SocketStream* socket, int error) OVERRIDE; |
| 79 | 79 |
| 80 // SpdyWebSocketStream::Delegate methods. | 80 // SpdyWebSocketStream::Delegate methods. |
| 81 virtual void OnCreatedSpdyStream(int status) OVERRIDE; | 81 virtual void OnCreatedSpdyStream(int status) OVERRIDE; |
| 82 virtual void OnSentSpdyHeaders() OVERRIDE; | 82 virtual void OnSentSpdyHeaders() OVERRIDE; |
| 83 virtual int OnReceivedSpdyResponseHeader( | 83 virtual void OnSpdyResponseHeadersUpdated( |
| 84 const SpdyHeaderBlock& headers, int status) OVERRIDE; | 84 const SpdyHeaderBlock& response_headers) OVERRIDE; |
| 85 virtual void OnSentSpdyData(size_t bytes_sent) OVERRIDE; | 85 virtual void OnSentSpdyData(size_t bytes_sent) OVERRIDE; |
| 86 virtual void OnReceivedSpdyData(scoped_ptr<SpdyBuffer> buffer) OVERRIDE; | 86 virtual void OnReceivedSpdyData(scoped_ptr<SpdyBuffer> buffer) OVERRIDE; |
| 87 virtual void OnCloseSpdyStream() OVERRIDE; | 87 virtual void OnCloseSpdyStream() OVERRIDE; |
| 88 | 88 |
| 89 private: | 89 private: |
| 90 friend class WebSocketThrottle; | 90 friend class WebSocketThrottle; |
| 91 friend class WebSocketJobSpdy2Test; | 91 friend class WebSocketJobSpdy2Test; |
| 92 friend class WebSocketJobSpdy3Test; | 92 friend class WebSocketJobSpdy3Test; |
| 93 virtual ~WebSocketJob(); | 93 virtual ~WebSocketJob(); |
| 94 | 94 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 base::WeakPtrFactory<WebSocketJob> weak_ptr_factory_; | 156 base::WeakPtrFactory<WebSocketJob> weak_ptr_factory_; |
| 157 base::WeakPtrFactory<WebSocketJob> weak_ptr_factory_for_send_pending_; | 157 base::WeakPtrFactory<WebSocketJob> weak_ptr_factory_for_send_pending_; |
| 158 | 158 |
| 159 DISALLOW_COPY_AND_ASSIGN(WebSocketJob); | 159 DISALLOW_COPY_AND_ASSIGN(WebSocketJob); |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 } // namespace | 162 } // namespace |
| 163 | 163 |
| 164 #endif // NET_WEBSOCKETS_WEBSOCKET_JOB_H_ | 164 #endif // NET_WEBSOCKETS_WEBSOCKET_JOB_H_ |
| OLD | NEW |