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

Side by Side Diff: trunk/src/base/message_pump_libevent.cc

Issue 16897005: Revert 206507 "Move message_pump to base/message_loop." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/message_pump_libevent.h" 5 #include "base/message_pump_libevent.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <unistd.h> 9 #include <unistd.h>
10 10
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 // Remove and discard the wakeup byte. 370 // Remove and discard the wakeup byte.
371 char buf; 371 char buf;
372 int nread = HANDLE_EINTR(read(socket, &buf, 1)); 372 int nread = HANDLE_EINTR(read(socket, &buf, 1));
373 DCHECK_EQ(nread, 1); 373 DCHECK_EQ(nread, 1);
374 that->processed_io_events_ = true; 374 that->processed_io_events_ = true;
375 // Tell libevent to break out of inner loop. 375 // Tell libevent to break out of inner loop.
376 event_base_loopbreak(that->event_base_); 376 event_base_loopbreak(that->event_base_);
377 } 377 }
378 378
379 } // namespace base 379 } // namespace base
OLDNEW
« no previous file with comments | « trunk/src/base/message_pump_libevent.h ('k') | trunk/src/base/message_pump_libevent_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698