| 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_SOCKET_STREAM_SOCKET_STREAM_JOB_H_ | 5 #ifndef NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_ |
| 6 #define NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_ | 6 #define NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 virtual bool SendData(const char* data, int len); | 61 virtual bool SendData(const char* data, int len); |
| 62 | 62 |
| 63 virtual void Close(); | 63 virtual void Close(); |
| 64 | 64 |
| 65 virtual void RestartWithAuth(const AuthCredentials& credentials); | 65 virtual void RestartWithAuth(const AuthCredentials& credentials); |
| 66 | 66 |
| 67 virtual void DetachDelegate(); | 67 virtual void DetachDelegate(); |
| 68 | 68 |
| 69 protected: | 69 protected: |
| 70 friend class WebSocketJobTest; | 70 friend class WebSocketJobSpdy2Test; |
| 71 friend class WebSocketJobSpdy3Test; |
| 71 friend class base::RefCountedThreadSafe<SocketStreamJob>; | 72 friend class base::RefCountedThreadSafe<SocketStreamJob>; |
| 72 virtual ~SocketStreamJob(); | 73 virtual ~SocketStreamJob(); |
| 73 | 74 |
| 74 scoped_refptr<SocketStream> socket_; | 75 scoped_refptr<SocketStream> socket_; |
| 75 | 76 |
| 76 DISALLOW_COPY_AND_ASSIGN(SocketStreamJob); | 77 DISALLOW_COPY_AND_ASSIGN(SocketStreamJob); |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 } // namespace net | 80 } // namespace net |
| 80 | 81 |
| 81 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_ | 82 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_ |
| OLD | NEW |