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

Unified Diff: content/browser/renderer_host/pepper/pepper_udp_socket.h

Issue 11441012: PPB_UDPSocket_Private is switched to the new Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added data size check. Created 7 years, 11 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
Index: content/browser/renderer_host/pepper/pepper_udp_socket.h
diff --git a/content/browser/renderer_host/pepper/pepper_udp_socket.h b/content/browser/renderer_host/pepper/pepper_udp_socket.h
deleted file mode 100644
index ceb4aede0f4c4426a47da5bb52132f26323acdae..0000000000000000000000000000000000000000
--- a/content/browser/renderer_host/pepper/pepper_udp_socket.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_UDP_SOCKET_H_
-#define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_UDP_SOCKET_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "net/base/completion_callback.h"
-#include "net/base/ip_endpoint.h"
-#include "ppapi/c/pp_stdint.h"
-
-struct PP_NetAddress_Private;
-
-namespace net {
-class IOBuffer;
-class UDPServerSocket;
-}
-
-namespace content {
-class PepperMessageFilter;
-
-// PepperUDPSocket is used by PepperMessageFilter to handle requests from
-// the Pepper UDP socket API (PPB_UDPSocket_Private).
-class PepperUDPSocket {
- public:
- PepperUDPSocket(PepperMessageFilter* manager,
- int32 routing_id,
- uint32 plugin_dispatcher_id,
- uint32 socket_id);
- ~PepperUDPSocket();
-
- int routing_id() { return routing_id_; }
-
- void AllowAddressReuse(bool value);
- void AllowBroadcast(bool value);
- void Bind(const PP_NetAddress_Private& addr);
- void RecvFrom(int32_t num_bytes);
- void SendTo(const std::string& data, const PP_NetAddress_Private& addr);
- void SendBindACKError();
- void SendSendToACKError();
-
- private:
- void SendRecvFromACKError();
-
- void OnBindCompleted(int result);
- void OnRecvFromCompleted(int result);
- void OnSendToCompleted(int result);
-
- PepperMessageFilter* manager_;
- int32 routing_id_;
- uint32 plugin_dispatcher_id_;
- uint32 socket_id_;
- bool allow_address_reuse_;
- bool allow_broadcast_;
-
- scoped_ptr<net::UDPServerSocket> socket_;
-
- scoped_refptr<net::IOBuffer> recvfrom_buffer_;
- scoped_refptr<net::IOBuffer> sendto_buffer_;
-
- net::IPEndPoint recvfrom_address_;
- net::IPEndPoint bound_address_;
-
- DISALLOW_COPY_AND_ASSIGN(PepperUDPSocket);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_UDP_SOCKET_H_

Powered by Google App Engine
This is Rietveld 408576698