OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_LOOP_H_ | 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ |
6 #define BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ | 6 #define BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
547 #endif | 547 #endif |
548 | 548 |
549 #if defined(OS_WIN) | 549 #if defined(OS_WIN) |
550 typedef MessagePumpObserver Observer; | 550 typedef MessagePumpObserver Observer; |
551 | 551 |
552 // Please see message_pump_win for definitions of these methods. | 552 // Please see message_pump_win for definitions of these methods. |
553 void AddObserver(Observer* observer); | 553 void AddObserver(Observer* observer); |
554 void RemoveObserver(Observer* observer); | 554 void RemoveObserver(Observer* observer); |
555 #endif | 555 #endif |
556 | 556 |
557 #if defined(USE_OZONE) || (defined(OS_CHROMEOS) && !defined(USE_GLIB)) | 557 #if defined(USE_OZONE) || (defined(OS_CHROMEOS) && !defined(USE_GLIB)) || \ |
558 (defined(OS_LINUX) && !defined(USE_GLIB)) | |
zhaoze.zhou
2014/07/15 21:33:10
this function is needed x11_event_source_libevent.
sadrul
2014/07/15 21:34:41
Do you mean:
USE_OZONE || (USE_X11 && !USE_GLIB
| |
558 // Please see MessagePumpLibevent for definition. | 559 // Please see MessagePumpLibevent for definition. |
559 bool WatchFileDescriptor( | 560 bool WatchFileDescriptor( |
560 int fd, | 561 int fd, |
561 bool persistent, | 562 bool persistent, |
562 MessagePumpLibevent::Mode mode, | 563 MessagePumpLibevent::Mode mode, |
563 MessagePumpLibevent::FileDescriptorWatcher* controller, | 564 MessagePumpLibevent::FileDescriptorWatcher* controller, |
564 MessagePumpLibevent::Watcher* delegate); | 565 MessagePumpLibevent::Watcher* delegate); |
565 #endif | 566 #endif |
566 }; | 567 }; |
567 | 568 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
648 | 649 |
649 // Do not add any member variables to MessageLoopForIO! This is important b/c | 650 // Do not add any member variables to MessageLoopForIO! This is important b/c |
650 // MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra | 651 // MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra |
651 // data that you need should be stored on the MessageLoop's pump_ instance. | 652 // data that you need should be stored on the MessageLoop's pump_ instance. |
652 COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO), | 653 COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO), |
653 MessageLoopForIO_should_not_have_extra_member_variables); | 654 MessageLoopForIO_should_not_have_extra_member_variables); |
654 | 655 |
655 } // namespace base | 656 } // namespace base |
656 | 657 |
657 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ | 658 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ |
OLD | NEW |