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

Unified Diff: ppapi/cpp/private/udp_socket.h

Issue 8506016: Remove 'Flash' from TCP/UDP Pepper interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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: ppapi/cpp/private/udp_socket.h
diff --git a/ppapi/cpp/private/flash_udp_socket.h b/ppapi/cpp/private/udp_socket.h
similarity index 65%
rename from ppapi/cpp/private/flash_udp_socket.h
rename to ppapi/cpp/private/udp_socket.h
index e472c00774b16e12e9646ad478239dd9a4ecc26e..e473117d888b60c79be6c2f053b48043c2d8ee2b 100644
--- a/ppapi/cpp/private/flash_udp_socket.h
+++ b/ppapi/cpp/private/udp_socket.h
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PPAPI_CPP_PRIVATE_FLASH_UDP_SOCKET_H_
-#define PPAPI_CPP_PRIVATE_FLASH_UDP_SOCKET_H_
+#ifndef PPAPI_CPP_PRIVATE_UDP_SOCKET_H_
+#define PPAPI_CPP_PRIVATE_UDP_SOCKET_H_
#include "ppapi/c/pp_stdint.h"
-#include "ppapi/c/private/ppb_flash_udp_socket.h"
+#include "ppapi/c/private/ppb_udp_socket.h"
#include "ppapi/cpp/resource.h"
namespace pp {
@@ -14,27 +14,24 @@ namespace pp {
class CompletionCallback;
class Instance;
-namespace flash {
-
class UDPSocket : public Resource {
public:
explicit UDPSocket(Instance* instance);
- int32_t Bind(const PP_Flash_NetAddress* addr,
+ int32_t Bind(const PP_NetAddress* addr,
const CompletionCallback& callback);
int32_t RecvFrom(char* buffer,
int32_t num_bytes,
const CompletionCallback& callback);
- bool GetRecvFromAddress(PP_Flash_NetAddress* addr);
+ bool GetRecvFromAddress(PP_NetAddress* addr);
int32_t SendTo(const char* buffer,
int32_t num_bytes,
- const PP_Flash_NetAddress* addr,
+ const PP_NetAddress* addr,
const CompletionCallback& callback);
void Close();
};
-} // namespace flash
} // namespace pp
-#endif // PPAPI_CPP_PRIVATE_FLASH_UDP_SOCKET_H_
+#endif // PPAPI_CPP_PRIVATE_UDP_SOCKET_H_

Powered by Google App Engine
This is Rietveld 408576698