| OLD | NEW |
| 1 // Copyright (c) 2010 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 CompletionCallback* callback_; // for throttling. | 101 CompletionCallback* callback_; // for throttling. |
| 102 | 102 |
| 103 scoped_ptr<WebSocketHandshakeRequestHandler> handshake_request_; | 103 scoped_ptr<WebSocketHandshakeRequestHandler> handshake_request_; |
| 104 scoped_ptr<WebSocketHandshakeResponseHandler> handshake_response_; | 104 scoped_ptr<WebSocketHandshakeResponseHandler> handshake_response_; |
| 105 | 105 |
| 106 size_t handshake_request_sent_; | 106 size_t handshake_request_sent_; |
| 107 | 107 |
| 108 std::vector<std::string> response_cookies_; | 108 std::vector<std::string> response_cookies_; |
| 109 size_t response_cookies_save_index_; | 109 size_t response_cookies_save_index_; |
| 110 | 110 |
| 111 CompletionCallbackImpl<WebSocketJob> can_get_cookies_callback_; | |
| 112 CompletionCallbackImpl<WebSocketJob> can_set_cookie_callback_; | |
| 113 | |
| 114 scoped_ptr<WebSocketFrameHandler> send_frame_handler_; | 111 scoped_ptr<WebSocketFrameHandler> send_frame_handler_; |
| 115 scoped_refptr<DrainableIOBuffer> current_buffer_; | 112 scoped_refptr<DrainableIOBuffer> current_buffer_; |
| 116 scoped_ptr<WebSocketFrameHandler> receive_frame_handler_; | 113 scoped_ptr<WebSocketFrameHandler> receive_frame_handler_; |
| 117 | 114 |
| 118 DISALLOW_COPY_AND_ASSIGN(WebSocketJob); | 115 DISALLOW_COPY_AND_ASSIGN(WebSocketJob); |
| 119 }; | 116 }; |
| 120 | 117 |
| 121 } // namespace | 118 } // namespace |
| 122 | 119 |
| 123 #endif // NET_WEBSOCKETS_WEBSOCKET_JOB_H_ | 120 #endif // NET_WEBSOCKETS_WEBSOCKET_JOB_H_ |
| OLD | NEW |