| 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 REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_ | 5 #ifndef REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_ |
| 6 #define REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_ | 6 #define REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 scoped_ptr<ChannelAuthenticator> authenticator_; | 60 scoped_ptr<ChannelAuthenticator> authenticator_; |
| 61 | 61 |
| 62 // We own |channel_| until it is connected. After that | 62 // We own |channel_| until it is connected. After that |
| 63 // |authenticator_| owns it. | 63 // |authenticator_| owns it. |
| 64 scoped_ptr<PepperTransportSocketAdapter> owned_channel_; | 64 scoped_ptr<PepperTransportSocketAdapter> owned_channel_; |
| 65 PepperTransportSocketAdapter* channel_; | 65 PepperTransportSocketAdapter* channel_; |
| 66 | 66 |
| 67 // Indicates that we've finished connecting. | 67 // Indicates that we've finished connecting. |
| 68 bool connected_; | 68 bool connected_; |
| 69 | 69 |
| 70 // Callback called by the TCP layer. | |
| 71 net::OldCompletionCallbackImpl<PepperStreamChannel> p2p_connect_callback_; | |
| 72 | |
| 73 DISALLOW_COPY_AND_ASSIGN(PepperStreamChannel); | 70 DISALLOW_COPY_AND_ASSIGN(PepperStreamChannel); |
| 74 }; | 71 }; |
| 75 | 72 |
| 76 } // namespace protocol | 73 } // namespace protocol |
| 77 } // namespace remoting | 74 } // namespace remoting |
| 78 | 75 |
| 79 #endif // REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_ | 76 #endif // REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_ |
| OLD | NEW |