OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_PROXY_VPN_PROVIDER_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_VPN_PROVIDER_RESOURCE_H_ |
6 #define PPAPI_PROXY_VPN_PROVIDER_RESOURCE_H_ | 6 #define PPAPI_PROXY_VPN_PROVIDER_RESOURCE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 scoped_refptr<TrackedCallback> bind_callback_; | 70 scoped_refptr<TrackedCallback> bind_callback_; |
71 scoped_refptr<TrackedCallback> send_packet_callback_; | 71 scoped_refptr<TrackedCallback> send_packet_callback_; |
72 scoped_refptr<TrackedCallback> receive_packet_callback_; | 72 scoped_refptr<TrackedCallback> receive_packet_callback_; |
73 | 73 |
74 // Keeps a pointer to the provided callback variable. Received packet will be | 74 // Keeps a pointer to the provided callback variable. Received packet will be |
75 // copied to this variable on ready. | 75 // copied to this variable on ready. |
76 PP_Var* receive_packet_callback_var_; | 76 PP_Var* receive_packet_callback_var_; |
77 | 77 |
78 std::unique_ptr<ppapi::VpnProviderSharedBuffer> send_packet_buffer_; | 78 std::unique_ptr<ppapi::VpnProviderSharedBuffer> send_packet_buffer_; |
79 std::unique_ptr<ppapi::VpnProviderSharedBuffer> receive_packet_buffer_; | 79 std::unique_ptr<ppapi::VpnProviderSharedBuffer> recv_packet_buffer_; |
80 | 80 |
81 std::queue<PP_Var> send_packets_; | 81 std::queue<PP_Var> send_packets_; |
82 std::queue<scoped_refptr<Var>> received_packets_; | 82 std::queue<scoped_refptr<Var>> received_packets_; |
83 | 83 |
84 // Connection bound state | 84 // Connection bound state |
85 bool bound_; | 85 bool bound_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(VpnProviderResource); | 87 DISALLOW_COPY_AND_ASSIGN(VpnProviderResource); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace proxy | 90 } // namespace proxy |
91 } // namespace ppapi | 91 } // namespace ppapi |
92 | 92 |
93 #endif // PPAPI_PROXY_VPN_PROVIDER_RESOURCE_H_ | 93 #endif // PPAPI_PROXY_VPN_PROVIDER_RESOURCE_H_ |
OLD | NEW |