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(USE_X11) && !defined(USE_GLIB)) |
558 // Please see MessagePumpLibevent for definition. | 558 // Please see MessagePumpLibevent for definition. |
559 bool WatchFileDescriptor( | 559 bool WatchFileDescriptor( |
560 int fd, | 560 int fd, |
561 bool persistent, | 561 bool persistent, |
562 MessagePumpLibevent::Mode mode, | 562 MessagePumpLibevent::Mode mode, |
563 MessagePumpLibevent::FileDescriptorWatcher* controller, | 563 MessagePumpLibevent::FileDescriptorWatcher* controller, |
564 MessagePumpLibevent::Watcher* delegate); | 564 MessagePumpLibevent::Watcher* delegate); |
565 #endif | 565 #endif |
566 }; | 566 }; |
567 | 567 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 | 648 |
649 // Do not add any member variables to MessageLoopForIO! This is important b/c | 649 // Do not add any member variables to MessageLoopForIO! This is important b/c |
650 // MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra | 650 // MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra |
651 // data that you need should be stored on the MessageLoop's pump_ instance. | 651 // data that you need should be stored on the MessageLoop's pump_ instance. |
652 COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO), | 652 COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO), |
653 MessageLoopForIO_should_not_have_extra_member_variables); | 653 MessageLoopForIO_should_not_have_extra_member_variables); |
654 | 654 |
655 } // namespace base | 655 } // namespace base |
656 | 656 |
657 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ | 657 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ |
OLD | NEW |