Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Unified Diff: ppapi/cpp/private/flash_net_connector.cc

Issue 9836131: Remove PPB_Flash_NetConnector and ENABLE_FLAPPER_HACKS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/cpp/private/flash_net_connector.h ('k') | ppapi/ppapi_proxy.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/flash_net_connector.cc
diff --git a/ppapi/cpp/private/flash_net_connector.cc b/ppapi/cpp/private/flash_net_connector.cc
deleted file mode 100644
index b448e7ec78d578b74cce722f3de5284e8f055b32..0000000000000000000000000000000000000000
--- a/ppapi/cpp/private/flash_net_connector.cc
+++ /dev/null
@@ -1,62 +0,0 @@
-// 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.
-
-#include "ppapi/cpp/private/flash_net_connector.h"
-
-#include "ppapi/c/pp_errors.h"
-#include "ppapi/cpp/completion_callback.h"
-#include "ppapi/cpp/instance_handle.h"
-#include "ppapi/cpp/module.h"
-#include "ppapi/cpp/module_impl.h"
-
-namespace pp {
-
-namespace {
-
-template <> const char* interface_name<PPB_Flash_NetConnector>() {
- return PPB_FLASH_NETCONNECTOR_INTERFACE;
-}
-
-} // namespace
-
-namespace flash {
-
-NetConnector::NetConnector(const InstanceHandle& instance) {
- if (has_interface<PPB_Flash_NetConnector>()) {
- PassRefFromConstructor(get_interface<PPB_Flash_NetConnector>()->Create(
- instance.pp_instance()));
- }
-}
-
-int32_t NetConnector::ConnectTcp(const char* host,
- uint16_t port,
- PP_FileHandle* socket_out,
- PP_NetAddress_Private* local_addr_out,
- PP_NetAddress_Private* remote_addr_out,
- const CompletionCallback& cc) {
- if (!has_interface<PPB_Flash_NetConnector>())
- return cc.MayForce(PP_ERROR_NOINTERFACE);
- return get_interface<PPB_Flash_NetConnector>()->ConnectTcp(
- pp_resource(),
- host, port,
- socket_out, local_addr_out, remote_addr_out,
- cc.pp_completion_callback());
-}
-
-int32_t NetConnector::ConnectTcpAddress(const PP_NetAddress_Private* addr,
- PP_FileHandle* socket_out,
- PP_NetAddress_Private* local_addr_out,
- PP_NetAddress_Private* remote_addr_out,
- const CompletionCallback& cc) {
- if (!has_interface<PPB_Flash_NetConnector>())
- return cc.MayForce(PP_ERROR_NOINTERFACE);
- return get_interface<PPB_Flash_NetConnector>()->ConnectTcpAddress(
- pp_resource(),
- addr,
- socket_out, local_addr_out, remote_addr_out,
- cc.pp_completion_callback());
-}
-
-} // namespace flash
-} // namespace pp
« no previous file with comments | « ppapi/cpp/private/flash_net_connector.h ('k') | ppapi/ppapi_proxy.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698