| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 PPAPI_SHARED_IMPL_PPB_TCP_SOCKET_SHARED_H_ | 5 #ifndef PPAPI_SHARED_IMPL_PPB_TCP_SOCKET_SHARED_H_ |
| 6 #define PPAPI_SHARED_IMPL_PPB_TCP_SOCKET_SHARED_H_ | 6 #define PPAPI_SHARED_IMPL_PPB_TCP_SOCKET_SHARED_H_ |
| 7 | 7 |
| 8 #include "ppapi/shared_impl/ppapi_shared_export.h" | 8 #include "ppapi/shared_impl/ppapi_shared_export.h" |
| 9 | 9 |
| 10 namespace ppapi { | 10 namespace ppapi { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 bool IsConnected() const; | 47 bool IsConnected() const; |
| 48 bool IsBound() const; | 48 bool IsBound() const; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 StateType state_; | 51 StateType state_; |
| 52 TransitionType pending_transition_; | 52 TransitionType pending_transition_; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 // TCP socket API versions. | 55 // TCP socket API versions. |
| 56 enum PPAPI_SHARED_EXPORT TCPSocketVersion { | 56 enum TCPSocketVersion { |
| 57 // PPB_TCPSocket_Private. | 57 // PPB_TCPSocket_Private. |
| 58 TCP_SOCKET_VERSION_PRIVATE, | 58 TCP_SOCKET_VERSION_PRIVATE, |
| 59 // PPB_TCPSocket v1.0. | 59 // PPB_TCPSocket v1.0. |
| 60 TCP_SOCKET_VERSION_1_0, | 60 TCP_SOCKET_VERSION_1_0, |
| 61 // PPB_TCPSocket v1.1 or above. | 61 // PPB_TCPSocket v1.1 or above. |
| 62 TCP_SOCKET_VERSION_1_1_OR_ABOVE | 62 TCP_SOCKET_VERSION_1_1_OR_ABOVE |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } // namespace ppapi | 65 } // namespace ppapi |
| 66 | 66 |
| 67 #endif // PPAPI_SHARED_IMPL_PPB_TCP_SOCKET_SHARED_H_ | 67 #endif // PPAPI_SHARED_IMPL_PPB_TCP_SOCKET_SHARED_H_ |
| OLD | NEW |