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

Unified Diff: webkit/plugins/ppapi/ppb_transport_impl.cc

Issue 5828003: Move the Pepper implementation from webkit/glue/plugins/pepper_* to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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 | « webkit/plugins/ppapi/ppb_transport_impl.h ('k') | webkit/plugins/ppapi/ppb_url_loader_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,17 @@
// 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 ppapi {
namespace {
@@ -25,9 +26,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 +118,28 @@
} // 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::AsPPB_Transport_Impl() {
+ return this;
+}
+
+bool PPB_Transport_Impl::Init(const char* name, const char* proto) {
// TODO(juberti): impl
return false;
}
-} // namespace pepper
+} // namespace ppapi
+} // namespace webkit
« no previous file with comments | « webkit/plugins/ppapi/ppb_transport_impl.h ('k') | webkit/plugins/ppapi/ppb_url_loader_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698