| 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_TRANSPORT_SOCKET_ADAPTER_H_ | 5 #ifndef REMOTING_PROTOCOL_PEPPER_TRANSPORT_SOCKET_ADAPTER_H_ |
| 6 #define REMOTING_PROTOCOL_PEPPER_TRANSPORT_SOCKET_ADAPTER_H_ | 6 #define REMOTING_PROTOCOL_PEPPER_TRANSPORT_SOCKET_ADAPTER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/threading/non_thread_safe.h" | 12 #include "base/threading/non_thread_safe.h" |
| 13 #include "net/base/net_log.h" | 13 #include "net/base/net_log.h" |
| 14 #include "net/socket/stream_socket.h" | 14 #include "net/socket/stream_socket.h" |
| 15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
| 16 #include "ppapi/cpp/completion_callback.h" | 16 #include "ppapi/cpp/completion_callback.h" |
| 17 | 17 |
| 18 namespace pp { | 18 namespace pp { |
| 19 class Instance; | |
| 20 class Transport_Dev; | 19 class Transport_Dev; |
| 21 } // namespace pp | 20 } // namespace pp |
| 22 | 21 |
| 23 namespace remoting { | 22 namespace remoting { |
| 24 namespace protocol { | 23 namespace protocol { |
| 25 | 24 |
| 26 // This class implements net::StreamSocket interface on top of the the | 25 // This class implements net::StreamSocket interface on top of the the |
| 27 // Pepper P2P Transport API. | 26 // Pepper P2P Transport API. |
| 28 class PepperTransportSocketAdapter : public base::NonThreadSafe, | 27 class PepperTransportSocketAdapter : public base::NonThreadSafe, |
| 29 public net::StreamSocket { | 28 public net::StreamSocket { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 99 |
| 101 pp::CompletionCallbackFactory<PepperTransportSocketAdapter> callback_factory_; | 100 pp::CompletionCallbackFactory<PepperTransportSocketAdapter> callback_factory_; |
| 102 | 101 |
| 103 DISALLOW_COPY_AND_ASSIGN(PepperTransportSocketAdapter); | 102 DISALLOW_COPY_AND_ASSIGN(PepperTransportSocketAdapter); |
| 104 }; | 103 }; |
| 105 | 104 |
| 106 } // namespace protocol | 105 } // namespace protocol |
| 107 } // namespace remoting | 106 } // namespace remoting |
| 108 | 107 |
| 109 #endif // REMOTING_PROTOCOL_PEPPER_TRANSPORT_SOCKET_ADAPTER_H_ | 108 #endif // REMOTING_PROTOCOL_PEPPER_TRANSPORT_SOCKET_ADAPTER_H_ |
| OLD | NEW |