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

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

Issue 10699043: Move Pepper files in renderer_host to new subdir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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_udp_socket.h
diff --git a/content/browser/renderer_host/pepper_udp_socket.h b/content/browser/renderer_host/pepper_udp_socket.h
deleted file mode 100644
index a90e99f8bb77fab77433193709c2e1711c642217..0000000000000000000000000000000000000000
--- a/content/browser/renderer_host/pepper_udp_socket.h
+++ /dev/null
@@ -1,67 +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_UDP_SOCKET_H_
-#define CONTENT_BROWSER_RENDERER_HOST_PEPPER_UDP_SOCKET_H_
-#pragma once
-
-#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"
-
-class PepperMessageFilter;
-struct PP_NetAddress_Private;
-
-namespace net {
-class IOBuffer;
-class UDPServerSocket;
-}
-
-// 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 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();
-
- private:
- void SendRecvFromACKError();
- void SendSendToACKError();
-
- void OnBindCompleted(int result);
- void OnRecvFromCompleted(int result);
- void OnSendToCompleted(int result);
-
- PepperMessageFilter* manager_;
- int32 routing_id_;
- uint32 plugin_dispatcher_id_;
- uint32 socket_id_;
-
- 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);
-};
-
-#endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_UDP_SOCKET_H_
« no previous file with comments | « content/browser/renderer_host/pepper_tcp_socket.cc ('k') | content/browser/renderer_host/pepper_udp_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698