OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_THUNK_PPB_VPNPROVIDER_API_H_ |
| 6 #define PPAPI_THUNK_PPB_VPNPROVIDER_API_H_ |
| 7 |
| 8 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 9 |
| 10 namespace ppapi { |
| 11 namespace thunk { |
| 12 |
| 13 class PPAPI_THUNK_EXPORT PPB_VpnProvider_API { |
| 14 public: |
| 15 virtual ~PPB_VpnProvider_API() {} |
| 16 |
| 17 virtual int32_t CreateConfig( |
| 18 const PP_Var& name, |
| 19 PP_Var* id, |
| 20 const scoped_refptr<TrackedCallback>& callback) = 0; |
| 21 virtual int32_t DestroyConfig( |
| 22 const PP_Var& id, |
| 23 const scoped_refptr<TrackedCallback>& callback) = 0; |
| 24 virtual int32_t SetParameters( |
| 25 const PP_Var& address, |
| 26 const PP_Var& broadcast_address, |
| 27 int32_t mtu, |
| 28 const PP_Var& exclusion_list, |
| 29 const PP_Var& inclusion_list, |
| 30 const PP_Var& domain_search, |
| 31 const PP_Var& dns_servers, |
| 32 const scoped_refptr<TrackedCallback>& callback) = 0; |
| 33 virtual int32_t SendPacket(const PP_Var& packet) = 0; |
| 34 virtual int32_t NotifyConnectionStateChanged( |
| 35 PP_VpnProvider_VpnConnectionState status, |
| 36 const scoped_refptr<TrackedCallback>& callback) = 0; |
| 37 virtual int32_t GetPacket(PP_Var* packet, |
| 38 const scoped_refptr<TrackedCallback>& callback) = 0; |
| 39 virtual int32_t GetPlatformMessage( |
| 40 PP_Var* message, |
| 41 const scoped_refptr<TrackedCallback>& callback) = 0; |
| 42 virtual int32_t GetConfigMessage( |
| 43 PP_Var* message, |
| 44 const scoped_refptr<TrackedCallback>& callback) = 0; |
| 45 virtual int32_t GetUIMessage( |
| 46 PP_Var* message, |
| 47 const scoped_refptr<TrackedCallback>& callback) = 0; |
| 48 }; |
| 49 |
| 50 } // namespace thunk |
| 51 } // namespace ppapi |
| 52 |
| 53 #endif // PPAPI_THUNK_PPB_VPNPROVIDER_API_H_ |
OLD | NEW |