summaryrefslogtreecommitdiffstats
path: root/net/tools/flip_server/sm_connection.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-04 18:35:54 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-04 18:35:54 +0000
commitecef1ff71284719fa8e1a1e23372175ba828a4be (patch)
tree463491d785bbfd075c2a805593691410f1fdd188 /net/tools/flip_server/sm_connection.cc
parent549e89a687830b2a6782a9fabdd1da8845532920 (diff)
downloadchromium_src-ecef1ff71284719fa8e1a1e23372175ba828a4be.zip
chromium_src-ecef1ff71284719fa8e1a1e23372175ba828a4be.tar.gz
chromium_src-ecef1ff71284719fa8e1a1e23372175ba828a4be.tar.bz2
Cleanup the net/tools/ directory so there are no warnings from our clang plugin.
(I've separated this chunk out since mbelshe said he was working here and I don't want to accidentally clobber his work. This is the last patch before Nico can turn the inlining plugin on for all targets.) BUG=none TEST=compiles Review URL: http://codereview.chromium.org/6368037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73820 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools/flip_server/sm_connection.cc')
-rw-r--r--net/tools/flip_server/sm_connection.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/net/tools/flip_server/sm_connection.cc b/net/tools/flip_server/sm_connection.cc
index be1e8db..b1dc3c8 100644
--- a/net/tools/flip_server/sm_connection.cc
+++ b/net/tools/flip_server/sm_connection.cc
@@ -55,6 +55,10 @@ SMConnection::~SMConnection() {
Reset();
}
+EpollServer* SMConnection::epoll_server() {
+ return epoll_server_;
+}
+
void SMConnection::ReadyToSend() {
VLOG(2) << log_prefix_ << ACCEPTOR_CLIENT_IDENT
<< "Setting ready to send: EPOLLIN | EPOLLOUT";
@@ -215,6 +219,10 @@ int SMConnection::Send(const char* data, int len, int flags) {
return rv;
}
+void SMConnection::OnRegistration(EpollServer* eps, int fd, int event_mask) {
+ registered_in_epoll_server_ = true;
+}
+
void SMConnection::OnEvent(int fd, EpollEvent* event) {
events_ |= event->in_events;
HandleEvents();
@@ -223,6 +231,11 @@ void SMConnection::OnEvent(int fd, EpollEvent* event) {
events_ = 0;
}
}
+
+void SMConnection::OnUnregistration(int fd, bool replaced) {
+ registered_in_epoll_server_ = false;
+}
+
void SMConnection::OnShutdown(EpollServer* eps, int fd) {
Cleanup("OnShutdown");
return;