// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // TODO(viettrungluu): This (and the .cc file) contain C++ wrappers for some // things in ppapi/c/private/ppb_flash.h. This is currently not used in (or even // compiled with) Chromium. #ifndef PPAPI_CPP_PRIVATE_FLASH_H_ #define PPAPI_CPP_PRIVATE_FLASH_H_ #include "ppapi/c/private/ppb_flash.h" #include "ppapi/cpp/resource.h" namespace pp { class CompletionCallback; class Instance; namespace flash { class NetConnector : public Resource { public: explicit NetConnector(const Instance& instance); int32_t ConnectTcp(const char* host, uint16_t port, PP_FileHandle* socket_out, PP_Flash_NetAddress* local_addr_out, PP_Flash_NetAddress* remote_addr_out, const CompletionCallback& cc); int32_t ConnectTcpAddress(const PP_Flash_NetAddress* addr, PP_FileHandle* socket_out, PP_Flash_NetAddress* local_addr_out, PP_Flash_NetAddress* remote_addr_out, const CompletionCallback& cc); }; } // namespace flash } // namespace pp #endif // PPAPI_CPP_PRIVATE_FLASH_H_