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

Side by Side Diff: base/message_loop/message_pump_libevent.h

Issue 18051003: Use a direct include of time headers in base/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« no previous file with comments | « base/message_loop/message_pump_glib.h ('k') | base/message_loop/message_pump_libevent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_LIBEVENT_H_ 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_LIBEVENT_H_
6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_LIBEVENT_H_ 6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_LIBEVENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/message_loop/message_pump.h" 11 #include "base/message_loop/message_pump.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/threading/thread_checker.h" 13 #include "base/threading/thread_checker.h"
14 #include "base/time.h" 14 #include "base/time/time.h"
15 15
16 // Declare structs we need from libevent.h rather than including it 16 // Declare structs we need from libevent.h rather than including it
17 struct event_base; 17 struct event_base;
18 struct event; 18 struct event;
19 19
20 namespace base { 20 namespace base {
21 21
22 // Class to monitor sockets and issue callbacks when sockets are ready for I/O 22 // Class to monitor sockets and issue callbacks when sockets are ready for I/O
23 // TODO(dkegel): add support for background file IO somehow 23 // TODO(dkegel): add support for background file IO somehow
24 class BASE_EXPORT MessagePumpLibevent : public MessagePump { 24 class BASE_EXPORT MessagePumpLibevent : public MessagePump {
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 event* wakeup_event_; 170 event* wakeup_event_;
171 171
172 ObserverList<IOObserver> io_observers_; 172 ObserverList<IOObserver> io_observers_;
173 ThreadChecker watch_file_descriptor_caller_checker_; 173 ThreadChecker watch_file_descriptor_caller_checker_;
174 DISALLOW_COPY_AND_ASSIGN(MessagePumpLibevent); 174 DISALLOW_COPY_AND_ASSIGN(MessagePumpLibevent);
175 }; 175 };
176 176
177 } // namespace base 177 } // namespace base
178 178
179 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_LIBEVENT_H_ 179 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_LIBEVENT_H_
OLDNEW
« no previous file with comments | « base/message_loop/message_pump_glib.h ('k') | base/message_loop/message_pump_libevent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698