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

Unified Diff: ppapi/cpp/private/flash_tcp_socket.cc

Issue 8564034: Pepper: Add a test for PPB_TCPSocket_Private. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unnecessary includes 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
« no previous file with comments | « ppapi/cpp/private/flash_tcp_socket.h ('k') | ppapi/ppapi_cpp.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/flash_tcp_socket.cc
diff --git a/ppapi/cpp/private/flash_tcp_socket.cc b/ppapi/cpp/private/flash_tcp_socket.cc
index 0dec2181d90ca947d5b080df3ecaad6a882b460f..18c865f1420dc5715bbead2ba04c3b0cad0afbc2 100644
--- a/ppapi/cpp/private/flash_tcp_socket.cc
+++ b/ppapi/cpp/private/flash_tcp_socket.cc
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// TODO(yzshen): See the comment in corresponding .h file.
-
#include "ppapi/cpp/private/flash_tcp_socket.h"
#include "ppapi/c/pp_bool.h"
@@ -32,6 +30,11 @@ TCPSocket::TCPSocket(Instance* instance) {
}
}
+// static
+bool TCPSocket::IsAvailable() {
+ return has_interface<PPB_Flash_TCPSocket>();
+}
+
int32_t TCPSocket::Connect(const char* host,
uint16_t port,
const CompletionCallback& callback) {
« no previous file with comments | « ppapi/cpp/private/flash_tcp_socket.h ('k') | ppapi/ppapi_cpp.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698