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

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

Issue 10454058: Remove PPB_Transport_Dev API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « webkit/plugins/ppapi/plugin_module.cc ('k') | webkit/plugins/ppapi/ppb_transport_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_transport_impl.h
diff --git a/webkit/plugins/ppapi/ppb_transport_impl.h b/webkit/plugins/ppapi/ppb_transport_impl.h
deleted file mode 100644
index 34393e4297976964b6c2bd743f7381325a2167c8..0000000000000000000000000000000000000000
--- a/webkit/plugins/ppapi/ppb_transport_impl.h
+++ /dev/null
@@ -1,82 +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.
-
-#ifndef WEBKIT_PLUGINS_PPAPI_PPB_TRANSPORT_IMPL_H_
-#define WEBKIT_PLUGINS_PPAPI_PPB_TRANSPORT_IMPL_H_
-
-#include <list>
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-#include "net/base/completion_callback.h"
-#include "ppapi/shared_impl/tracked_callback.h"
-#include "ppapi/shared_impl/resource.h"
-#include "ppapi/thunk/ppb_transport_api.h"
-#include "webkit/glue/p2p_transport.h"
-
-namespace webkit {
-namespace ppapi {
-
-class PPB_Transport_Impl : public ::ppapi::Resource,
- public ::ppapi::thunk::PPB_Transport_API,
- public webkit_glue::P2PTransport::EventHandler {
- public:
- virtual ~PPB_Transport_Impl();
-
- static PP_Resource Create(PP_Instance instance,
- const char* name,
- PP_TransportType type);
-
- // Resource override.
- virtual ::ppapi::thunk::PPB_Transport_API* AsPPB_Transport_API() OVERRIDE;
-
- // PPB_Transport_API implementation.
- virtual PP_Bool IsWritable() OVERRIDE;
- virtual int32_t SetProperty(PP_TransportProperty property,
- PP_Var value) OVERRIDE;
- virtual int32_t Connect(PP_CompletionCallback callback) OVERRIDE;
- virtual int32_t GetNextAddress(PP_Var* address,
- PP_CompletionCallback callback) OVERRIDE;
- virtual int32_t ReceiveRemoteAddress(PP_Var address) OVERRIDE;
- virtual int32_t Recv(void* data, uint32_t len,
- PP_CompletionCallback callback) OVERRIDE;
- virtual int32_t Send(const void* data, uint32_t len,
- PP_CompletionCallback callback) OVERRIDE;
- virtual int32_t Close() OVERRIDE;
-
- // webkit_glue::P2PTransport::EventHandler implementation.
- virtual void OnCandidateReady(const std::string& address) OVERRIDE;
- virtual void OnStateChange(webkit_glue::P2PTransport::State state) OVERRIDE;
- virtual void OnError(int error) OVERRIDE;
-
- private:
- explicit PPB_Transport_Impl(PP_Instance instance);
-
- bool Init(const char* name, PP_TransportType type);
-
- void OnRead(int result);
- void OnWritten(int result);
-
- std::string name_;
- PP_TransportType type_;
- webkit_glue::P2PTransport::Config config_;
- bool started_;
- scoped_ptr<webkit_glue::P2PTransport> p2p_transport_;
- bool writable_;
- std::list<std::string> local_candidates_;
-
- scoped_refptr< ::ppapi::TrackedCallback> connect_callback_;
- scoped_refptr< ::ppapi::TrackedCallback> next_address_callback_;
-
- scoped_refptr< ::ppapi::TrackedCallback> recv_callback_;
- scoped_refptr< ::ppapi::TrackedCallback> send_callback_;
-
- DISALLOW_COPY_AND_ASSIGN(PPB_Transport_Impl);
-};
-
-} // namespace ppapi
-} // namespace webkit
-
-#endif // WEBKIT_PLUGINS_PPAPI_PPB_TRANSPORT_IMPL_H_
« no previous file with comments | « webkit/plugins/ppapi/plugin_module.cc ('k') | webkit/plugins/ppapi/ppb_transport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698