| Index: webkit/plugins/ppapi/ppb_transport_impl.cc
|
| ===================================================================
|
| --- webkit/plugins/ppapi/ppb_transport_impl.cc (revision 0)
|
| +++ webkit/plugins/ppapi/ppb_transport_impl.cc (working copy)
|
| @@ -2,16 +2,18 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "webkit/glue/plugins/pepper_transport.h"
|
| +#include "webkit/plugins/ppapi/ppb_transport_impl.h"
|
|
|
| #include "base/singleton.h"
|
| #include "base/thread_local.h"
|
| #include "ppapi/c/dev/ppb_transport_dev.h"
|
| -#include "webkit/glue/plugins/pepper_common.h"
|
| -#include "webkit/glue/plugins/pepper_plugin_instance.h"
|
| -#include "webkit/glue/plugins/pepper_plugin_module.h"
|
| +#include "webkit/plugins/ppapi/common.h"
|
| +#include "webkit/plugins/ppapi/plugin_instance.h"
|
| +#include "webkit/plugins/ppapi/plugin_module.h"
|
|
|
| -namespace pepper {
|
| +namespace webkit {
|
| +namespace plugins {
|
| +namespace ppapi {
|
|
|
| namespace {
|
|
|
| @@ -25,9 +27,9 @@
|
| return p;
|
| }
|
|
|
| -// Returns whether or not resource is Transport
|
| +// Returns whether or not resource is PPB_Transport_Impl
|
| PP_Bool IsTransport(PP_Resource resource) {
|
| - return BoolToPPBool(!!Resource::GetAs<Transport>(resource));
|
| + return BoolToPPBool(!!Resource::GetAs<PPB_Transport_Impl>(resource));
|
| }
|
|
|
| // Returns whether the transport is currently writable
|
| @@ -117,24 +119,29 @@
|
|
|
| } // namespace
|
|
|
| -Transport::Transport(PluginModule* module)
|
| +PPB_Transport_Impl::PPB_Transport_Impl(PluginModule* module)
|
| : Resource(module) {
|
| // TODO(juberti): impl
|
| }
|
|
|
| -const PPB_Transport_Dev* Transport::GetInterface() {
|
| +const PPB_Transport_Dev* PPB_Transport_Impl::GetInterface() {
|
| return &ppb_transport;
|
| }
|
|
|
| -Transport::~Transport() {
|
| +PPB_Transport_Impl::~PPB_Transport_Impl() {
|
| // TODO(juberti): teardown
|
| }
|
|
|
| -bool Transport::Init(const char* name,
|
| - const char* proto) {
|
| +PPB_Transport_Impl* PPB_Transport_Impl::AsTransport() {
|
| + return this;
|
| +}
|
| +
|
| +bool PPB_Transport_Impl::Init(const char* name, const char* proto) {
|
| // TODO(juberti): impl
|
| return false;
|
| }
|
|
|
| -} // namespace pepper
|
| +} // namespace ppapi
|
| +} // namespace plugins
|
| +} // namespace webkit
|
|
|
|
|