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

Unified Diff: tools/android/forwarder2/socket.cc

Issue 137923004: Revert "Revert 235213 "android: forwader2: Simplify Forwarder implementa..."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add DCHECK() in SetPeer() Created 6 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
« no previous file with comments | « tools/android/forwarder2/socket.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/forwarder2/socket.cc
diff --git a/tools/android/forwarder2/socket.cc b/tools/android/forwarder2/socket.cc
index d6a47371b4c14ea1105d26d92e93e23f1503abe7..fb0b48fd6810ba1de267a76bd79b19a611b3e837 100644
--- a/tools/android/forwarder2/socket.cc
+++ b/tools/android/forwarder2/socket.cc
@@ -287,19 +287,6 @@ int Socket::GetPort() {
return port_;
}
-bool Socket::IsFdInSet(const fd_set& fds) const {
- if (IsClosed())
- return false;
- return FD_ISSET(socket_, &fds);
-}
-
-bool Socket::AddFdToSet(fd_set* fds) const {
- if (IsClosed())
- return false;
- FD_SET(socket_, fds);
- return true;
-}
-
int Socket::ReadNumBytes(void* buffer, size_t num_bytes) {
int bytes_read = 0;
int ret = 1;
@@ -442,11 +429,6 @@ bool Socket::WaitForEvent(EventType type, int timeout_secs) {
}
// static
-int Socket::GetHighestFileDescriptor(const Socket& s1, const Socket& s2) {
- return std::max(s1.socket_, s2.socket_);
-}
-
-// static
pid_t Socket::GetUnixDomainSocketProcessOwner(const std::string& path) {
Socket socket;
if (!socket.ConnectUnix(path))
« no previous file with comments | « tools/android/forwarder2/socket.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698